--- old/src/share/classes/java/util/jar/JarFile.java Thu Jun 19 19:25:38 2014 +++ new/src/share/classes/java/util/jar/JarFile.java Thu Jun 19 19:25:38 2014 @@ -1,5 +1,5 @@ /* - * 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 @@ -28,6 +28,7 @@ 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; @@ -394,6 +395,11 @@ 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