United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6675843 Calls using new per-applet Packages keyword fail after page reload
JDK-6675843 : Calls using new per-applet Packages keyword fail after page reload

Details
Type:
Bug
Submit Date:
2008-03-15
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-06-27
Component:
deploy
OS:
generic
Sub-Component:
plugin
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b21)

Related Reports
Relates:

Sub Tasks

Description
The attached test case from a customer indicates that the per-applet Packages keyword support is not working properly in some situations. With Firefox 3, open the Java Console and the Error Console, and navigate to the attached test case's example.html. Click the "Search" button. Note that "Got string: test" is printed to the Java Console. Reload the page. Click the "Search" button again. Note that this output is not printed to the Java Console, and an error ("Attempt to call a default method on object with no invokeDefault method") is being reported.

The problem is that for some reason the context class loader of the LiveConnect worker thread is null in the Firefox reload case at the time we attempt to resolve the class's name. The same problem does not occur in IE, probably due to slightly different ordering of LiveConnect-related messages at the beginning of time.

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u10/6675843.0
testcase: http://j2se.east.sun.com/deployment/www/tests/1.6.0_10/6675843/
                                     
2008-03-16
EVALUATION

A difference in the order of plugin-related operations between Firefox
and Internet Explorer during page reload highlighted the fact that the
"loader" instance variable was incorrectly being accessed directly
during startup of the LiveConnect worker thread instead of a call to
the appropriate accessor method. This is the root cause of the failure
to look up the class using the new per-applet Packages keyword after a
page reload.
                                     
2008-03-16



Hardware and Software, Engineered to Work Together