[rfc][icedtea-web] Fix for PR920, duplicate class loading when extending from outside jar

Adam Domurad adomurad at redhat.com
Tue Jul 10 13:58:45 PDT 2012


Also see [rfc][icedtea-web] Reproducer for PR920.

Removes recursive/non-recursive call distinction in findClass for
CodeBaseLoader, because, IMO it is not necessary when you set the parent
classloader in the super() call. Any explicit calls to findClass will
not recurse indefinitely.

Causes PR920 reproducer that I posted to pass, with no new regressions.

Ch-ch-changes:
2012-07-10  Adam Domurad  <adomurad at redhat.com>

	Fixes PR920, duplicate loading of classes in certain cases 
	* NEWS: Added entry: Fixes PR920
	* netx/net/sourceforge/jnlp/runtime/JNLPClassLoader.java: Remove 
	recursive/non-recursive distinction. Add parent JNLPClassLoader to 
	parent chain. Calling findClass directly turns out to be enough to 
	avoid recursive behaviour. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.patch
Type: text/x-patch
Size: 2173 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120710/21563296/patch.patch 


More information about the distro-pkg-dev mailing list