author | michaelm |
Tue, 06 Mar 2012 20:34:38 +0000 | |
changeset 12047 | 320a714614e9 |
parent 6322 | 0a20892f9af6 |
child 18594 | b6a3c9f71ac8 |
permissions | -rw-r--r-- |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
1 |
/* |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
2 |
* Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
4 |
* |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
8 |
* |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
13 |
* accompanied this code). |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
14 |
* |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
18 |
* |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
21 |
* questions. |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
22 |
*/ |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
23 |
|
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
24 |
/* |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
25 |
* @test |
6322
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
26 |
* @bug 6575373 6969063 |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
27 |
* @summary verify default properties of the packer/unpacker and segment limit |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
28 |
* @compile -XDignore.symbol.file Utils.java Pack200Props.java |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
29 |
* @run main Pack200Props |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
30 |
* @author ksrini |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
31 |
*/ |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
32 |
|
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
33 |
import java.io.File; |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
34 |
import java.util.ArrayList; |
6322
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
35 |
import java.util.HashMap; |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
36 |
import java.util.List; |
6322
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
37 |
import java.util.Map; |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
38 |
import java.util.jar.Pack200; |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
39 |
import java.util.jar.Pack200.Packer; |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
40 |
|
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
41 |
/* |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
42 |
* Run this against a large jar file, by default the packer should generate only |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
43 |
* one segment, parse the output of the packer to verify if this is indeed true. |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
44 |
*/ |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
45 |
|
6322
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
46 |
public class Pack200Props { |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
47 |
|
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
48 |
public static void main(String... args) { |
6322
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
49 |
verifyDefaults(); |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
50 |
File out = new File("test" + Utils.PACK_FILE_EXT); |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
51 |
out.delete(); |
6322
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
52 |
verifySegmentLimit(out); |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
53 |
} |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
54 |
|
6322
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
55 |
static void verifySegmentLimit(File outFile) { |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
56 |
File sdkHome = Utils.JavaSDK; |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
57 |
File testJar = new File(new File(sdkHome, "lib"), "tools.jar"); |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
58 |
|
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
59 |
System.out.println("using pack200: " + Utils.getPack200Cmd()); |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
60 |
|
6322
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
61 |
List<String> cmdsList = new ArrayList<>(); |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
62 |
cmdsList.add(Utils.getPack200Cmd()); |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
63 |
cmdsList.add("--effort=1"); |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
64 |
cmdsList.add("--verbose"); |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
65 |
cmdsList.add("--no-gzip"); |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
66 |
cmdsList.add(outFile.getName()); |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
67 |
cmdsList.add(testJar.getAbsolutePath()); |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
68 |
List<String> outList = Utils.runExec(cmdsList); |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
69 |
|
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
70 |
int count = 0; |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
71 |
for (String line : outList) { |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
72 |
System.out.println(line); |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
73 |
if (line.matches(".*Transmitted.*files of.*input bytes in a segment of.*bytes")) { |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
74 |
count++; |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
75 |
} |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
76 |
} |
6322
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
77 |
if (count == 0) { |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
78 |
throw new RuntimeException("no segments or no output ????"); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
79 |
} else if (count > 1) { |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
80 |
throw new RuntimeException("multiple segments detected, expected 1"); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
81 |
} |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
82 |
} |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
83 |
|
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
84 |
private static void verifyDefaults() { |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
85 |
Map<String, String> expectedDefaults = new HashMap<>(); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
86 |
Packer p = Pack200.newPacker(); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
87 |
expectedDefaults.put("com.sun.java.util.jar.pack.default.timezone", |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
88 |
p.FALSE); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
89 |
expectedDefaults.put("com.sun.java.util.jar.pack.disable.native", |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
90 |
p.FALSE); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
91 |
expectedDefaults.put("com.sun.java.util.jar.pack.verbose", "0"); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
92 |
expectedDefaults.put(p.CLASS_ATTRIBUTE_PFX + "CompilationID", "RUH"); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
93 |
expectedDefaults.put(p.CLASS_ATTRIBUTE_PFX + "SourceID", "RUH"); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
94 |
expectedDefaults.put(p.CODE_ATTRIBUTE_PFX + "CharacterRangeTable", |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
95 |
"NH[PHPOHIIH]"); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
96 |
expectedDefaults.put(p.CODE_ATTRIBUTE_PFX + "CoverageTable", |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
97 |
"NH[PHHII]"); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
98 |
expectedDefaults.put(p.DEFLATE_HINT, p.KEEP); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
99 |
expectedDefaults.put(p.EFFORT, "5"); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
100 |
expectedDefaults.put(p.KEEP_FILE_ORDER, p.TRUE); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
101 |
expectedDefaults.put(p.MODIFICATION_TIME, p.KEEP); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
102 |
expectedDefaults.put(p.SEGMENT_LIMIT, "-1"); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
103 |
expectedDefaults.put(p.UNKNOWN_ATTRIBUTE, p.PASS); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
104 |
|
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
105 |
Map<String, String> props = p.properties(); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
106 |
int errors = 0; |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
107 |
for (String key : expectedDefaults.keySet()) { |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
108 |
String def = expectedDefaults.get(key); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
109 |
String x = props.get(key); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
110 |
if (x == null) { |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
111 |
System.out.println("Error: key not found:" + key); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
112 |
errors++; |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
113 |
} else { |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
114 |
if (!def.equals(x)) { |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
115 |
System.out.println("Error: key " + key |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
116 |
+ "\n value expected: " + def |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
117 |
+ "\n value obtained: " + x); |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
118 |
errors++; |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
119 |
} |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
120 |
} |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
121 |
} |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
122 |
if (errors > 0) { |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
123 |
throw new RuntimeException(errors + |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
124 |
" error(s) encountered in default properties verification"); |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
125 |
} |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
126 |
} |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
127 |
} |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
128 |