[Bug 1251] New: getResource failures on swing EDT caused by AppContext having wrong classloader
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Thu Jan 10 08:52:21 PST 2013
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1251
Bug ID: 1251
Summary: getResource failures on swing EDT caused by AppContext
having wrong classloader
Classification: Unclassified
Product: IcedTea-Web
Version: hg
Hardware: all
OS: All
Status: NEW
Severity: normal
Priority: P3
Component: NetX (javaws)
Assignee: omajid at redhat.com
Reporter: adomurad at redhat.com
CC: unassigned at icedtea.classpath.org
Probable cause of PR840[1]
This is a regression. During refactoring, the setContextClassLoader seems to
have been dropped from initialization like so:
> Thread.currentThread().setContextClassLoader(jnlpclassloader);
> SunToolkit.createNewAppContext();
Setting the context classloader like this is important for resources loaded
from Swing threads. The AppContext captures the context classloader and
periodically will override the swing thread context classloader. This causes
getResource to return null in swing threads, mysteriously.
[1] http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=840
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20130110/8efc8f1b/attachment.html
More information about the distro-pkg-dev
mailing list