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

REGRESSION:Choice box still not showing japanese characters (#4464921 still broken

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      solaris_9

      Description

      FULL PRODUCT VERSION :
      java version "1.5.0_01"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
      Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      SunOS orac 5.9 Generic_112233-08 sun4u sparc SUNW,UltraSPARC-IIi-Engine
      SunOS router 5.9 Generic_112234-10 i86pc i386 i86pc


      A DESCRIPTION OF THE PROBLEM :
      Choice items still do not show foreign text. Bug 4464921 should be reopened. This is a regression. The last version that worked was 1.4.0_04-b04. Note this problem is only for solaris (both on x86 and SPARC) - it does work under windows.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Compile attached program and run with:
      java -Duser.language=ja ChoiceExample


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Label and choice should match characters.
      ACTUAL -
      ?s are substituted in choice.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.awt.*;
      import java.awt.event.*;
      import java.awt.Window;

      class BasicWindowMonitor extends WindowAdapter {
        public void windowClosing(WindowEvent e) {
          Window w = e.getWindow();
          w.setVisible(false);
          w.dispose();
          System.exit(0);
        }
      }

      public class ChoiceExample extends Frame implements ActionListener
      {
          Choice c1 = new Choice();
          Label l = new Label();

          public ChoiceExample() {
              super("Toolbar Example (AWT)");
              setSize(450, 250);
              addWindowListener(new BasicWindowMonitor());
        
              Font ft = new Font( "Sans-serif", Font.BOLD, 12);

              l.setFont( ft );
              c1.setFont( ft );
              l.setText("Main Test (\u3072) (\u30ab):");
              c1.add("Roman choice");
              c1.add("\u3072");
              c1.add("\u30ab");

              add(l, BorderLayout.NORTH);
              add(c1, BorderLayout.SOUTH);
          }

          public void actionPerformed(ActionEvent ae) {
             System.out.println(ae.getActionCommand());
          }

          public static void main( String argv[] ) {
            ChoiceExample ce = new ChoiceExample();
            ce.setVisible(true);
          }
      }

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      use a version prior to 1.4.1.

      Release Regression From : 1.4.0_04
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.
      ###@###.### 2005-2-01 22:43:44 GMT

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dav Andrei Dmitriev (Inactive)
                Reporter:
                rmandalasunw Ranjith Mandala (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: