-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
5.0u7
-
sparc
-
windows_xp
OPERATING SYSTEM(S):
Windows XP
FULL JDK VERSION(S):
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)
DESCRIPTION:
If we set the legacy_lifecycle parameter to true, then refreshing the browser(internet explorer) will finish with bad layout.
This problem is also reported in java technology forum (http://forum.java.sun.com/thread.jspa?forumID=32&threadID=689284)
MINIMAL SOURCE CODE THAT DEMONSTRATES THE PROBLEM
//HTML code (test.html)
<!-- <HTML>
<P>
<APPLET
CODE="test.class"
ARCHIVE="test.jar"
width=200 height=50>
<PARAM NAME="legacy_lifecycle" VALUE="true">
</APPLET>
</P>
</HTML>
// Applet code (test.java)
public class test extends javax.swing.JApplet
{
public void init()
{
getContentPane().setBackground(java.awt.Color.YELLOW);
getContentPane().add (new javax.swing.JLabel("legacy_lifecycle Test"));
}
}
STEPS TO REPRODUCE
1. Compile test.java
2. Open test.html in Internet Explorer
3. A label 'legacy_lifecycle Test' with yellow background will appear.
4. To observe the problem, refresh the page. The layout will be distorted (see attached).
TRACE INFORMATION
1. Java console output when legacy_lifecycle is set to true:
basic: Stopping applet ...
basic: Applet supports legacy lifecycle model - add applet to lifecycle cache
basic: Unregistered modality listener
basic: Found previous stopped applet from lifecycle cache
basic: Registered modality listener
basic: Starting applet ...
2. Java console output when legacy_lifecycle is set to false:
basic: Stopping applet ...
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@17a8a02
basic: Finding information ...
basic: Releasing classloader: sun.plugin.ClassLoaderInfo@911f71, refcount=1
basic: Done ...
basic: Joining applet thread ...
basic: Destroying applet ...
basic: Disposing applet ...
basic: Quiting applet ...
basic: Joined applet thread ...
basic: Unregistered modality listener
basic: Registered modality listener
liveconnect: Invoking JS method: document
liveconnect: Invoking JS method: URL
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@911f71, refcount=2
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@12bb7e0
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
Windows XP
FULL JDK VERSION(S):
java version "1.5.0_07"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-b03)
Java HotSpot(TM) Client VM (build 1.5.0_07-b03, mixed mode, sharing)
DESCRIPTION:
If we set the legacy_lifecycle parameter to true, then refreshing the browser(internet explorer) will finish with bad layout.
This problem is also reported in java technology forum (http://forum.java.sun.com/thread.jspa?forumID=32&threadID=689284)
MINIMAL SOURCE CODE THAT DEMONSTRATES THE PROBLEM
//HTML code (test.html)
<!-- <HTML>
<P>
<APPLET
CODE="test.class"
ARCHIVE="test.jar"
width=200 height=50>
<PARAM NAME="legacy_lifecycle" VALUE="true">
</APPLET>
</P>
</HTML>
// Applet code (test.java)
public class test extends javax.swing.JApplet
{
public void init()
{
getContentPane().setBackground(java.awt.Color.YELLOW);
getContentPane().add (new javax.swing.JLabel("legacy_lifecycle Test"));
}
}
STEPS TO REPRODUCE
1. Compile test.java
2. Open test.html in Internet Explorer
3. A label 'legacy_lifecycle Test' with yellow background will appear.
4. To observe the problem, refresh the page. The layout will be distorted (see attached).
TRACE INFORMATION
1. Java console output when legacy_lifecycle is set to true:
basic: Stopping applet ...
basic: Applet supports legacy lifecycle model - add applet to lifecycle cache
basic: Unregistered modality listener
basic: Found previous stopped applet from lifecycle cache
basic: Registered modality listener
basic: Starting applet ...
2. Java console output when legacy_lifecycle is set to false:
basic: Stopping applet ...
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter@17a8a02
basic: Finding information ...
basic: Releasing classloader: sun.plugin.ClassLoaderInfo@911f71, refcount=1
basic: Done ...
basic: Joining applet thread ...
basic: Destroying applet ...
basic: Disposing applet ...
basic: Quiting applet ...
basic: Joined applet thread ...
basic: Unregistered modality listener
basic: Registered modality listener
liveconnect: Invoking JS method: document
liveconnect: Invoking JS method: URL
basic: Referencing classloader: sun.plugin.ClassLoaderInfo@911f71, refcount=2
basic: Added progress listener: sun.plugin.util.GrayBoxPainter@12bb7e0
basic: Loading applet ...
basic: Initializing applet ...
basic: Starting applet ...
- relates to
-
JDK-6635803 IE with java 1.5.0_08 crashes when legacylifecycle set to true
-
- Closed
-