JDK-7200974 : Bad parent given in NativeInLightFixer (Component.java)
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u31
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • CPU: x86
  • Submitted: 2012-09-25
  • Updated: 2013-09-12
  • Resolved: 2012-11-30
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.
JDK 6
6u60 b01Fixed
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
source changes came with # 7200974.
20-12-2012

It is inapplicable to jdk8 and jdk7.
09-10-2012