JDK-7124515 : [macosx] Test fail like 6366126 (ArrayIndexOutOfBoundException pressing ENTER after removing items)
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-12-23
  • Updated: 2018-01-30
  • Resolved: 2012-02-29
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u4 b11Fixed 8Fixed
Related Reports
Relates :  
Description
http://java.net/jira/browse/MACOSX_PORT-753 submitted 2011/11/29 by Yuri Nesterenko
Test attached as is. Problem explained in <span class=&quot;nobr&quot;><a href=&quot;http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6366126&quot;>http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6366126<sup><img class=&quot;rendericon&quot; src=&quot;/jira/images/icons/linkext7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/></sup></a></span> for mustang jdk release. 
It's clearly a regression since b218!
Adding a junit test reference here: apparently similar failure reason.
Build: b219
closed/java/awt/List/EmptyListEventTest/EmptyListEventTest
java/awt/List/ActionAfterRemove/ActionAfterRemove.java

Comments
EVALUATION Changeset http://hg.openjdk.java.net/jdk7u/jdk7u-osx/jdk/rev/61f551d646ea
13-01-2012

EVALUATION Selected list index should be checked that it does not equal -1.
11-01-2012