-
Bug
-
Resolution: Fixed
-
P3
-
OpenJDK6, 6u12, 7
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2169172 | 6u12 | Anthony Petrov | P2 | Resolved | Fixed | b02 |
JDK-2155900 | OpenJDK6 | Anthony Petrov | P2 | Resolved | Fixed | b03 |
java.lang.ArrayIndexOutOfBoundsException: No such child: -1
at java.awt.Container.getComponent(Container.java:307)
at java.awt.Component.mixOnZOrderChanging(Component.java:9696)
at java.awt.Container.setComponentZOrder(Container.java:713)
The following test reproduces the problem.
import java.awt.*;
public class test {
public static void main(String[] args) {
Container c = new Container();
Button b = new Button("b");
c.setComponentZOrder(b, 0);
}
}
- backported by
-
JDK-2155900 HW/LW mixing code incorrectly handles insertion of components with the setComponentZOrder() method
- Resolved
-
JDK-2169172 HW/LW mixing code incorrectly handles insertion of components with the setComponentZOrder() method
- Resolved
- duplicates
-
JDK-6776852 api/java_awt/Container/index.html#ZOrder fails with ArrayIndexOutOfBoundsException for 6u12
- Closed
-
JDK-6630267 REGRESSION: javasoft.sqe.tests.api.java.awt.Container.ZOrderTests[Container0014] fail
- Closed
-
JDK-6768218 PIT: Changing the z-order of the component at run time throws exception
- Closed
-
JDK-6619782 test\java\awt\Mixing\setComponentZOrder.java fails with JDK7b22
- Closed