[rfc][icedtea-web] PR1251: Hack for appcontext & event-queue classloaders
Adam Domurad
adomurad at redhat.com
Thu Apr 4 13:17:53 PDT 2013
This puts a bandaid over
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1251. 'Fix' is
probably too generous.
With this, the SweetHome3D JNLP [1] runs again. The applet version had
worked before.
This is explicitly *not* wanted for HEAD. I am posting this for review
now to be considered for any release branches where a proper fix is not
found. (1.4 definitely, who knows maybe even previous & future releases.
But such hackery should not be in HEAD.)
2013-XX-XX Adam Domurad <adomurad at redhat.com>
Hack to ensure AppContext is set correctly.
* netx/net/sourceforge/jnlp/Launcher.java
(forceContextClassLoaderHack): Force stored class-loader for
thread-group's AppContext and EventQueue to be our JNLPClassLoader.
(createApplet): Call forceContextClassLoaderHack.
(createAppletObject): Call forceContextClassLoaderHack.
(createApplication): Call forceContextClassLoaderHack.
I have not found any potential problems this may cause (and I've digged
quite deep). Let me know of any concerns.
[1] www.sweethome3d.com/SweetHome3D.jnlp
Happy hacking,
-Adam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: app-context-hack.patch
Type: text/x-patch
Size: 3219 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20130404/5f6e2c9d/app-context-hack.patch
More information about the distro-pkg-dev
mailing list