8012156: tools/javac/file/zip/T6865530.java fails for win32/64 in 7u25 nightly runs
Reviewed-by: alanb
This commit is contained in:
parent
0431243910
commit
8322464f71
@ -722,8 +722,16 @@ public class URLClassPath {
|
|||||||
/* Throws if the given jar file is does not start with the correct LOC */
|
/* Throws if the given jar file is does not start with the correct LOC */
|
||||||
static JarFile checkJar(JarFile jar) throws IOException {
|
static JarFile checkJar(JarFile jar) throws IOException {
|
||||||
if (System.getSecurityManager() != null && !DISABLE_JAR_CHECKING
|
if (System.getSecurityManager() != null && !DISABLE_JAR_CHECKING
|
||||||
&& !zipAccess.startsWithLocHeader(jar))
|
&& !zipAccess.startsWithLocHeader(jar)) {
|
||||||
throw new IOException("Invalid Jar file");
|
IOException x = new IOException("Invalid Jar file");
|
||||||
|
try {
|
||||||
|
jar.close();
|
||||||
|
} catch (IOException ex) {
|
||||||
|
x.addSuppressed(ex);
|
||||||
|
}
|
||||||
|
throw x;
|
||||||
|
}
|
||||||
|
|
||||||
return jar;
|
return jar;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user