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

JComboBox will printed out debug information in zh_TW locale.

XMLWordPrintable

    • 1.2.2
    • sparc
    • solaris_2.6

        JDK Version: 1.2fcs-O
        OS: Solaris 2.6
        Locale: zh_TW

        JComboBox will printed out debug information in zh_TW locale, the information
        is as follows:

         nrows = 0 cellHeights.length = 1

        The printed number will changed sometimes.

        In fact in BasicListUI.java, there exists a code like:

        System.out.println("nrows = " + nrows + " cellHeights.length = " + cellHeights.length);
        (line number is 648)

        I think it should be removed from the source code.


        Attached is a program to reproduce it:

        Save the file
        javac JComboBoxTester.java
        java JComboBoxTester
        use mouse to pull down the list of the JComboBox, then wait a while
        to see this printed information.

        jim.hu@prc 1998-10-29

              sswingtrsunw Swingtraq Swingtraq (Inactive)
              jhusunw Jim Hu (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: