United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4890014 reload button in IE reloads a new classlaoder even if other applets are using it
JDK-4890014 : reload button in IE reloads a new classlaoder even if other applets are using it

Details
Type:
Bug
Submit Date:
2003-07-14
Status:
Closed
Updated Date:
2004-02-22
Project Name:
JDK
Resolved Date:
2003-08-07
Component:
deploy
OS:
windows_2000
Sub-Component:
plugin
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.1
Fixed Versions:
1.4.1_07 (07)

Related Reports
Backport:
Backport:

Sub Tasks

Description
If we have 2 or more applets running in 2 or more IE browsers from the same 
source base and press reload in one of the browsers it reloads a new classloader
even though the old classloader was being used by the other applet(s).

Similar to bugId 4873484, but not the same. In this case we have multiple 
applets.

Attached testcase.zip demonstrates the problem.

###@###.### 2003-07-14

                                    

Comments
SUGGESTED FIX

ClassLoaderInfo.java:
  public static synchronized void markNotCachable(...)

  < if(cli != null) {

  >if(cli != null && cli.references <= 1) {
  >    /* references <= 1, beccause removeReference is called
  >       after AppletViewer.preRefresh */

###@###.### 2003-07-14
                                     
2003-07-14
EVALUATION

If the ClassLoaderInfo instance is being references by another applet then we cannot simply destroy it.

###@###.### 2003-07-14
                                     
2003-07-14
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
1.4.1_07
1.4.2_02
generic
tiger-beta2

FIXED IN:
1.4.1_07
1.4.2_02
tiger-beta2

INTEGRATED IN:
1.4.1_07
1.4.2_02
tiger-beta2

VERIFIED IN:
1.4.1_07
1.4.2_02


                                     
2004-06-14



Hardware and Software, Engineered to Work Together