JDK-6325638 : JComponent does not notify listener on move ancestor
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_8
  • CPU: x86
  • Submitted: 2005-09-19
  • Updated: 2012-03-22
  • Resolved: 2006-05-05
Related Reports
Duplicate :  
Relates :  
Description
Testsuite:  JCK 6.0 b006
Test:       api/javax_swing/JComponent/index.html#addAncestor2[JComponent2065]
Failed:     mustang b51, b52  - SunOS stt-05 5.8 Generic_117351-24 i86pc i386 i86pc
            mustang b51, b52  - SunOS stt-26 5.9 Generic_117172-07 i86pc i386 i86pc
Passed:     mustang b50 - SunOS stt-05 5.8 Generic_117351-24 i86pc i386 i86pc,
                          SunOS stt-26 5.9 Generic_117172-07 i86pc i386 i86pc
            mustang b50, b51, b52 - Windows XP SP2
How to reproduce:
  a) With JCK :
TESTSUITE=/net/jsqalab/export/testsuites/JCK/jck6.0/b06/JCK-runtime-60
DISPLAY=":0"
export DISPLAY

PRODUCT="/java/re/jdk/6.0/promoted/ea/b51/binaries/solaris-i586/bin/java"
$PRODUCT -Xshare:off -Xfuture -classpath $TESTSUITE/classes -Djava.security.policy=$TESTSUITE/lib/jck.policy javasoft.sqe.tests.api.javax.swing.JComponent.addAncestor2Tests -TestCaseID ALL 
 b) With standalone test:
        use addAncestor2Tests.java from attach ( No JCK is needed )

Note: this failure is NOT 100% reproducable ( possible timing issues )
      so run it several times if you can't reproduce it on a first try.

Description: JComponent does not notify listener on move ancestor

Test output :
----------out1:(2/147)----------
JComponent2065: Failed. Does not notify listener on move ancestor
STATUS:Failed.test cases: 1; all failed; first test case failure: JComponent2065
----------out2:(1/88)----------
====== JComponent2065 ====== public void addAncestorListener(AncestorListener listener)
result: Failed. test cases: 1; all failed; first test case failure: JComponent2065


test result: Failed. test cases: 1; all failed; first test case failure: JComponent2065

Suggestions:
May be is's the same issue as in test
  api/java_awt/Event/FrmEventTests.html#FrmEventTest0008[FrmEventTest0008] failure,
  see bug 6323293.
have seen the same failure on jdk6.0 b51 + jck6.0 b08 in plugin test mode on Linux AS 3.1

Comments
EVALUATION AncestorNotifier sends moved events to AncestorListeners when it receives componentMoved from AWT. There is an existing AWT bug, 6323293, that complains about missing componentMoved events for invisible frames. I think this is the same bug. To confirm we need to instrument the code the determine if in fact we are not receiving the componentMoved in AncestorListener. If that is the case, this can be re-assigned to AWT.
28-09-2005