Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4472389

IllegalArgumentException thrown by JComboBox.setSelectedIndex() on Sol9,java 1.4

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • solaris_9, 2.0_beta, 1.4.0
    • client-libs
    • 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
      ==============================================================================

            mdavidsosunw Mark Davidson (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: