Due to changes made with integration of CR 4811096 (probably), the following code ( taken from JCK test javasoft.sqe.tests.api.java.awt.Container.ZOrderTests[Container0014] ) fail.
--------------------------------------
LWComponent comp1 = new LWComponent();
LWComponent comps[] = {
new LWComponent(),
new LWComponent(),
new LWComponent()
};
int indices[] = { 0,1,3 };
for (int j=0; j<indices.length; j++) {
Container cont = new Container();
for (int i=0; i<comps.length; i++) {
cont.add(comps[i]);
}
cont.setComponentZOrder(comp1, indices[j]);
}
--------------------------------------
The following exception is thrown:
java.lang.ArrayIndexOutOfBoundsException: No such child: -1
at java.awt.Container.getComponent(Container.java:307)
at java.awt.Component.mixOnZOrderChanging(Component.java:9701)
at java.awt.Container.setComponentZOrder(Container.java:713)
at ZOrder.test(ZOrder.java:31)
...