aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremie Bresson2013-09-27 10:59:01 (EDT)
committerThomas Watson2013-09-27 11:41:17 (EDT)
commit804fcb42200b575267bcd05a6901c933f4b01ff8 (patch)
tree6a2da15596ded09114f354d6bd3420f363ae3149
parent99a01de8aecc629a46aedcb3e6fb01c89cbe069e (diff)
downloadrt.equinox.bundles-804fcb42200b575267bcd05a6901c933f4b01ff8.zip
rt.equinox.bundles-804fcb42200b575267bcd05a6901c933f4b01ff8.tar.gz
rt.equinox.bundles-804fcb42200b575267bcd05a6901c933f4b01ff8.tar.bz2
Bug 393407 CloseableURLClassLoader throws java.lang.SecurityException
for sealed packages https://bugs.eclipse.org/bugs/show_bug.cgi?id=393407 Change-Id: I42298b118d327b9962ca7c24dd999a5bd8e1eab8 Signed-off-by: Jeremie Bresson <jbr@bsiag.com>
-rw-r--r--bundles/org.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/CloseableURLClassLoader.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/CloseableURLClassLoader.java b/bundles/org.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/CloseableURLClassLoader.java
index 03bd8f9..1a02d95 100644
--- a/bundles/org.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/CloseableURLClassLoader.java
+++ b/bundles/org.eclipse.equinox.servletbridge/src/org/eclipse/equinox/servletbridge/CloseableURLClassLoader.java
@@ -289,7 +289,7 @@ public class CloseableURLClassLoader extends URLClassLoader {
JarURLConnection connection = (JarURLConnection) resourceURL.openConnection();
int lastDot = name.lastIndexOf('.');
if (lastDot != -1) {
- String packageName = name.substring(0, lastDot + 1);
+ String packageName = name.substring(0, lastDot);
Package pkg = getPackage(packageName);
if (pkg != null) {
checkForSealedPackage(pkg, packageName, manifest, connection.getJarFileURL());