src/share/classes/java/util/jar/JarFile.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -26,10 +26,11 @@
package java.util.jar;
import java.io.*;
import java.lang.ref.SoftReference;
import java.net.URL;
+import java.nio.file.Paths;
import java.util.*;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;
import java.util.zip.*;
import java.security.CodeSigner;
@@ -392,10 +393,15 @@
verify = false;
if (JarVerifier.debug != null) {
JarVerifier.debug.println("jarfile parsing error!");
ex.printStackTrace();
}
+ } catch (SecurityException se) {
+
+ throw new SecurityException("Error in " +
+ Paths.get(getName()).getFileName() + " - " + se.getMessage(),
+ se);
}
// if after initializing the verifier we have nothing
// signed, we null it out.