FULL PRODUCT VERSION :
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b102)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b102, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP Professional
Version: 2002 Service pack 2
Internet Explorer
Version: 6.0.2900.2180.xpsp_sp2_rtm.040803-2158
Mozilla Firefox
Version: 1.5.0.8
EXTRA RELEVANT SYSTEM CONFIGURATION :
Intel Pentium 4 3Ghz
1 GB of RAM
A DESCRIPTION OF THE PROBLEM :
Method Thread.currentThread().getContextClassLoader() returns null when it is called from JavaScript.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) Compile attached file TestThreadContextClassLoader.java
2) Open attached file TestThreadContextClassLoader.html in browser
3) Press button "Test Java" from applet - Test passed
4) Press button "Test HTML" from applet - Test failed: thread does not have context class loader
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Thread.currentThread().getContextClassLoader() should not return null
ACTUAL -
Thread.currentThread().getContextClassLoader() is null
REPRODUCIBILITY :
This bug can be reproduced always.