-
Bug
-
Resolution: Fixed
-
P2
-
solaris_9, 2.0_beta, 1.4.0
-
beta2
-
x86, sparc
-
solaris_9, windows_2000
-
Verified
Attached is a test java source (ComboBoxSol9Bug.java) which creates a JDialog with a simple JComboBox. The sample code compiles and runs fine on Solaris 8 and Solaris 9 (java version Solaris VM (build Solaris_JDK_1.2.2_08, native threads, sunwjit).
However, the following exception gets thrown on Solaris 9 with Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b67):
Exception in thread "main" java.lang.IllegalArgumentException: setSelectedIndex: 0 out of bounds
at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:593)
at ComboBoxSol9Bug.modifyComboList(ComboBoxSol9Bug.java:36)
at ComboBoxSol9Bug.<init>(ComboBoxSol9Bug.java:17)
at ComboBoxSol9Bug.main(ComboBoxSol9Bug.java:24)
Please let me know if I'm doing something wrong. We are hoping this issue would get resolved quickly as it makes our application (ShowMeTV2.0) unusable in Solaris 9 + default java configuration. (cross reference bugID 4466457).
=============================================================================
Verified in MB91
###@###.### 2002-01-15
==============================================================================
However, the following exception gets thrown on Solaris 9 with Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta_refresh-b67):
Exception in thread "main" java.lang.IllegalArgumentException: setSelectedIndex: 0 out of bounds
at javax.swing.JComboBox.setSelectedIndex(JComboBox.java:593)
at ComboBoxSol9Bug.modifyComboList(ComboBoxSol9Bug.java:36)
at ComboBoxSol9Bug.<init>(ComboBoxSol9Bug.java:17)
at ComboBoxSol9Bug.main(ComboBoxSol9Bug.java:24)
Please let me know if I'm doing something wrong. We are hoping this issue would get resolved quickly as it makes our application (ShowMeTV2.0) unusable in Solaris 9 + default java configuration. (cross reference bugID 4466457).
=============================================================================
Verified in MB91
###@###.### 2002-01-15
==============================================================================
- duplicates
-
JDK-4479280 javax.swing.DefaultComboBoxModel constructor busted
- Closed