JDK-6743264 : incorrect background color handling in applet under java 1.5.14 thru 1.5.16
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 5.0u16
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: generic
  • Submitted: 2008-08-29
  • Updated: 2010-05-09
  • Resolved: 2009-01-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
5.0-poolResolved
Related Reports
Duplicate :  
Description
Incorrect background color handling and resulting exception.
Here are the steps the customer submitted, using jre 1.5.14, and he's got the 14 hardcoded in the testcase.  I duplicated this under 16 as well, making the appropriate change to the java source.  I followed his steps and duplicated the behavior he claims.

I followed the steps under java 1.6.0 update 7 and could not duplicate the behavior.

a. Install the jre 1.5.14 or jdk 1.5.15 
a. Put the files applet.html and InJava5.class in the document root of a 
webserver. 
b. Load applet.html file in Internet Explorer. I have used IE 7. 
c. The applet has a button labeled "Execute Javascript". On clicking the 
button, the background colour of the html page is changed to light green 
colour. 
d. Now type another URL [ e.g. www.google.com] in the address bar and load 
the page. 
e. Hit the "Back" button of the browser to navigate to the previous page that 
has the applet. 
f. Now click on the "execute Javascript" button. The colour of the background 
page does not change. The following exception is shown in the Java console : Exception in thread "AWT-EventQueue-2" netscape.javascript.JSException: 
Failure to evaluate self.document.bgColor='#CCFFCC' 
at sun.plugin.javascript.ocx.JSObject.eval(Unknown Source) 
at InJava5.actionPerformed(InJava5.java:18) 
at java.awt.Button.processActionEvent(Unknown Source) 
at java.awt.Button.processEvent(Unknown Source) 
at java.awt.Component.dispatchEventImpl(Unknown Source) 
at java.awt.Component.dispatchEvent(Unknown Source) 
at java.awt.EventQueue.dispatchEvent(Unknown Source) 
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) 
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) 
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) 
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) 
at java.awt.EventDispatchThread.run(Unknown Source)