/hg/icedtea-web: Fir regression that sometimes results in ClassC...
dbhole at icedtea.classpath.org
dbhole at icedtea.classpath.org
Mon Aug 27 12:33:51 PDT 2012
changeset f8cbc3cd9f33 in /hg/icedtea-web
details: http://icedtea.classpath.org/hg/icedtea-web?cmd=changeset;node=f8cbc3cd9f33
author: Deepak Bhole <dbhole at redhat.com>
date: Mon Aug 27 15:32:08 2012 -0400
Fir regression that sometimes results in ClassCircularityError
diffstat:
ChangeLog | 6 ++++++
netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
diffs (25 lines):
diff -r e591c793683a -r f8cbc3cd9f33 ChangeLog
--- a/ChangeLog Mon Aug 27 17:38:52 2012 +0200
+++ b/ChangeLog Mon Aug 27 15:32:08 2012 -0400
@@ -1,3 +1,9 @@
+2012-08-27 Deepak Bhole <dbhole at redhat.com>
+
+ * netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
+ (getAccessControlContextForClassLoading): Catch ClassCircularityErrors and
+ ignore them (thus denying permission to caller).
+
2012-08-27 Jiri Vanek <jvanek at redhat.com>
Added tests for PR822 - multiple signatures on classpath
diff -r e591c793683a -r f8cbc3cd9f33 netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java
--- a/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Mon Aug 27 17:38:52 2012 +0200
+++ b/netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java Mon Aug 27 15:32:08 2012 -0400
@@ -2154,6 +2154,8 @@
return context; // If context already has all permissions, don't bother
} catch (AccessControlException ace) {
// continue below
+ } catch (ClassCircularityError cce) {
+ // continue below
}
// Since this is for class-loading, technically any class from one jar
More information about the distro-pkg-dev
mailing list