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

Illegal cast to String in javax.swing.JOptionPane.showInternalInputDialog()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.2.2
    • client-libs



      Name: vi73552 Date: 06/03/99


      return type in javax.swing.JOptionPane.showInternalInputDialog()
      is defined as Object, but returned value is casted to String!!

          public static Object showInternalInputDialog(Component parentComponent,
                            Object message, String title, int messageType, Icon icon,
                            Object[] selectionValues, Object initialSelectionValue) {
             .....

             return (String) value;
          }
      (Review ID: 83889)
      ======================================================================

            amfowler Anne Fowler (Inactive)
            vasya Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: