United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7200974 Bad parent given in NativeInLightFixer (Component.java)
JDK-7200974 : Bad parent given in NativeInLightFixer (Component.java)

Details
Type:
Bug
Submit Date:
2012-09-25
Status:
Closed
Updated Date:
2013-06-27
Project Name:
JDK
Resolved Date:
2012-11-30
Component:
client-libs
OS:
linux
Sub-Component:
java.awt
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
6u31
Fixed Versions:
6u60 (b01)

Related Reports
Backport:

Sub Tasks

Description
FULL PRODUCT VERSION :


ADDITIONAL OS VERSION INFORMATION :
applicable to all OSes

A DESCRIPTION OF THE PROBLEM :
when the constructor of NativeInLightFixer is invoked in Container.addDelicately(), the parent used by NativeInLightFixer is the parent of the container, so the grandfather. In this case, no listener are added on the real parent.
An argument should be added to the constructor to give the parent :
- in Container.addDelicately(), the parent is "this"
- in Component.addNotify(), the parent is "this.parent"


REPRODUCIBILITY :
This bug can be reproduced always.

                                    

Comments
It is inapplicable to jdk8 and jdk7.

                                     
2012-10-09
source changes came with # 7200974.
                                     
2012-12-20
http://closedjdk.us.oracle.com/jdk6u/jdk6u-dev/j2se/rev/e3c216a89f0a
                                     
2013-05-16



Hardware and Software, Engineered to Work Together