Using JDK 1.2.2 build Q.
The specification says that the method add(String item, int index) of the AWT class
List is supposed to throw an ArrayIndexOutOfBounds exception when index is less
than -1. The JCK-12a test api/java_awt/interactive/descriptions.html#ListTest
fails. The mode of failure indicates that the exception is not being thrown.
I cannot explain how to setup and run the test. JavaTest setup is simply too
complicated. Consult with a JCK engineer or a JavaSoft engineer that has dealt
with these issues before.
Add a name "neg" at index -2. The entry is added to the end of the list.
Status message says "Item neg has been added at index -2." Looking
at the source code proves that the ArrayIndexOutOfBounds exception
that the 1.2 API spec calls for is not being thrown.
Click on show status
The test says "An element 6: neg has been added to the end of the list."