author | duke |
Wed, 05 Jul 2017 20:17:33 +0200 (2017-07-05) | |
changeset 28710 | 5b8db585a33c |
parent 27940 | 1ce0acf58d6c |
child 32850 | 59bcc3c351e6 |
permissions | -rw-r--r-- |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
1 |
/* |
27565 | 2 |
* Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. |
5799
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; |
18594
b6a3c9f71ac8
8017463: [TEST_BUG] 2 tests from tools/pack200/ remain about 1 GB of data in work directory after execution
ksrini
parents:
6322
diff
changeset
|
34 |
import java.io.IOException; |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
35 |
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
|
36 |
import java.util.HashMap; |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
37 |
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
|
38 |
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
|
39 |
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
|
40 |
import java.util.jar.Pack200.Packer; |
5799
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 |
/* |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
43 |
* 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
|
44 |
* 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
|
45 |
*/ |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
46 |
|
6322
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
47 |
public class Pack200Props { |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
48 |
|
18594
b6a3c9f71ac8
8017463: [TEST_BUG] 2 tests from tools/pack200/ remain about 1 GB of data in work directory after execution
ksrini
parents:
6322
diff
changeset
|
49 |
public static void main(String... args) throws IOException { |
6322
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
50 |
verifyDefaults(); |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
51 |
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
|
52 |
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
|
53 |
verifySegmentLimit(out); |
18594
b6a3c9f71ac8
8017463: [TEST_BUG] 2 tests from tools/pack200/ remain about 1 GB of data in work directory after execution
ksrini
parents:
6322
diff
changeset
|
54 |
Utils.cleanup(); |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
55 |
} |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
56 |
|
27565 | 57 |
static void verifySegmentLimit(File outFile) throws IOException { |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
58 |
File sdkHome = Utils.JavaSDK; |
27565 | 59 |
File testJar = Utils.createRtJar(); |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
60 |
|
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
61 |
System.out.println("using pack200: " + Utils.getPack200Cmd()); |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
62 |
|
6322
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
63 |
List<String> cmdsList = new ArrayList<>(); |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
64 |
cmdsList.add(Utils.getPack200Cmd()); |
27940
1ce0acf58d6c
8066745: tools/pack200/Pack200Props.java failed with java.lang.OutOfMemoryError: Java heap space
ksrini
parents:
27565
diff
changeset
|
65 |
cmdsList.add("-J-Xshare:off"); |
1ce0acf58d6c
8066745: tools/pack200/Pack200Props.java failed with java.lang.OutOfMemoryError: Java heap space
ksrini
parents:
27565
diff
changeset
|
66 |
cmdsList.add("-J-Xmx1280m"); |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
67 |
cmdsList.add("--effort=1"); |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
68 |
cmdsList.add("--verbose"); |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
69 |
cmdsList.add("--no-gzip"); |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
70 |
cmdsList.add(outFile.getName()); |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
71 |
cmdsList.add(testJar.getAbsolutePath()); |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
72 |
List<String> outList = Utils.runExec(cmdsList); |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
73 |
|
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
74 |
int count = 0; |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
75 |
for (String line : outList) { |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
76 |
System.out.println(line); |
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
77 |
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
|
78 |
count++; |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
79 |
} |
6314
8ab691ddb904
6966737: (pack200) the pack200 regression tests need to be more robust.
ksrini
parents:
5799
diff
changeset
|
80 |
} |
6322
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
81 |
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
|
82 |
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
|
83 |
} 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
|
84 |
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
|
85 |
} |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
86 |
} |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
87 |
|
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
88 |
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
|
89 |
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
|
90 |
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
|
91 |
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
|
92 |
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
|
93 |
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
|
94 |
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
|
95 |
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
|
96 |
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
|
97 |
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
|
98 |
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
|
99 |
"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
|
100 |
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
|
101 |
"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
|
102 |
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
|
103 |
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
|
104 |
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
|
105 |
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
|
106 |
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
|
107 |
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
|
108 |
|
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
109 |
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
|
110 |
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
|
111 |
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
|
112 |
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
|
113 |
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
|
114 |
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
|
115 |
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
|
116 |
errors++; |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
117 |
} else { |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
118 |
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
|
119 |
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
|
120 |
+ "\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
|
121 |
+ "\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
|
122 |
errors++; |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
123 |
} |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
124 |
} |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
125 |
} |
0a20892f9af6
6969063: (pack200) The default value of Pack200.Packer.SEGMENT_LIMIT property is empty string instead of -1
ksrini
parents:
6314
diff
changeset
|
126 |
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
|
127 |
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
|
128 |
" error(s) encountered in default properties verification"); |
5799
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
129 |
} |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
130 |
} |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
131 |
} |
e0089b2436a4
6575373: Error verifying signatures of pack200 files in some cases
ksrini
parents:
diff
changeset
|
132 |