JDK-6776852 : api/java_awt/Container/index.html#ZOrder fails with ArrayIndexOutOfBoundsException for 6u12
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u12
  • Priority: P1
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2008-11-26
  • Updated: 2012-03-22
  • Resolved: 2008-11-26
Related Reports
Duplicate :  
Description
JCK            : JCK 6b b24
J2SE           : FAIL - jdk 6u12 b01
Platform[s]    : FAIL - any (found on OpenSolaris, WinVista, Rhel 5.2)
switch/Mode    : FAIL - default

Test api/java_awt/Container/index.html#ZOrder fails with ArrayIndexOutOfBoundsException starting from 6u12 b01

Steps to reproduce:
1. Install JCK6b (for example to /export/JCK/JCK-runtime-6b)
2. Install JDK 6u12 b01 (for example to /export/jdk/jdk1.6.0_12)
3. Edit accordingly and run the script:
#!/bin/bash

export JAVA=/export/jdk/jdk1.6.0_12/bin/java
export CLASSPATH="/export/JCK/JCK-runtime-6b/classes"

OPTS=""
TEST=javasoft.sqe.tests.api.java.awt.Container.ZOrderTests

$JAVA -version
$JAVA  $TEST
4. You'll see the output like:
java version "1.6.0_12-ea"
Java(TM) Platform, Standard Edition for Business (build 1.6.0_12-ea-b01)
Java HotSpot(TM) Server VM (build 11.0-b17, mixed mode)
java.lang.ArrayIndexOutOfBoundsException: No such child: -1
        at java.awt.Container.getComponent(Container.java:289)
        at java.awt.Component.mixOnZOrderChanging(Component.java:9746)
        at java.awt.Container.setComponentZOrder(Container.java:702)
        at javasoft.sqe.tests.api.java.awt.Container.ZOrderTests.Container0014(ZOrderTests.java:87)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:406)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:195)
        at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:127)
        at javasoft.sqe.tests.api.java.awt.Container.ZOrderTests.main(ZOrderTests.java:58)
Container0014: Failed. Test case throws exception: java.lang.ArrayIndexOutOfBoundsException: No such child: -1
Container0015: Passed. OKAY
Container0016: Passed. OKAY
Container0017: Passed. OKAY
Container0018: Passed. OKAY
Container0019: Passed. OKAY
Container1006: Passed. OKAY
Container1007: Passed. OKAY
STATUS:Failed.test cases: 8; passed: 7; failed: 1; first test case failure: Container0014

Comments
EVALUATION The issue is a duplicate of 6589530. It got fixed in 6u12b02.
26-11-2008