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

Applications crash under Sol-Sparc 7 (Hebrew loc) if executed with default java

XMLWordPrintable



      Name: jbT81659 Date: 03/15/2001

      OS: Solaris Sparc (Hebrew locale) (HW is Ultra10)
      JDK: JDK_Merlin_Beta-1.4.0-b55

      Executing a swing java application using the default java command (32 bit) causes
      the text in the components to disappear and application to crash.
      on the other hand using the "java -server -D64 testcase" option executes the testcase
      normally without any problems.

      To reproduce this bug:
      1- compile the following code jList.java under Solaris Sparc7 (hebrew locale)
      2- Exute the testcase using "java jList"
      3- Press Home key on the keyboard
      4- press End key on the keyboard
      5- Repeat steps 3,4 until text disappears from application
      6- Note that application crashes and no errors or exceptions are displayed
      7- You can use PgUp/Pg/Down or keyboard/keypad arrows instead of Home/End keys
      9- Repeat previous steps but using "java -server -D64 jList"
      10- Verify that application executes without any problems.

      ---------------------Code--------------------
      /* Copyright (c) Sun Microsystems 1998

      $Header: /home/sun/src/JDK1.2/jList.java,v 1.12 2000/03/30 08:13:08 isam Exp $

      */

      import java.awt.*;
      import java.awt.event.*;
      import javax.swing.*;

      public class jList extends JApplet
      {
              public void init()
              {
                      SimpleList simpllist = new SimpleList();
                      getContentPane().add(simpllist);
              }

              public static void main(String[] argvs)
              {
                      JFrame frame = new JFrame("\u0645\u062b\u0627\u0644");
                      frame.setContentPane(new SimpleList());
                      frame.setSize(500, 500);
                      frame.setVisible(true);
              frame.addWindowListener( new WindowAdapter()
              {
                   public void windowClosing( WindowEvent e)
                   {
                       System.exit(0);
                   }
              });

              }
      }
      class SimpleList extends JPanel implements ActionListener
      {
              String label [] ={"\u062a\u0641\u0627\u062d\u0020\u0623\u062d\u0645\u0631\u0020\u0643\u0628\u064a\u0631\u0020\u0042\u0049\u0047\u0020\u0052\u0045\u0044\u0020\u0041\u0050\u0050\u004c\u0045\u0053","\u0647\u0630\u0627\u0020\u064a\u0648\u0645\u0020\u0644\u0637\u064a\u0641\u0020\u05d6\u05d4\u0020\u05d9\u05d5\u05dd\u0020\u05e0\u05e2\u05d9\u05dd","\u05d6\u05d5\u0020\u05e9\u05e0\u05d4\u0020\u05d9\u05e4\u05d4\u0020\u0054\u0048\u0045\u0020\u0059\u0045\u0041\u0052\u0020\u0031\u0039\u0035\u0038","\u05d6\u05d5\u0020\u05e9\u05e0\u05d4\u0020\u05d9\u05e4\u05d4","\u05ea\u05e4\u05d5\u05d6\u05d9\u05dd\u0020\u05d8\u05e2\u05de\u05d9\u05dd\u0020\u006c\u0069\u006d\u0065\u0020\u0069\u0073\u0020\u0067\u0072\u0065\u0065\u006e","\u006c\u0069\u006d\u0065\u0020\u0069\u0073\u0020\u0067\u0072\u0065\u0065\u006e\u05d7\u05d5\u05de\u05d5\u05e1\u0020\u05d9\u05e7\u05e8","\u006c\u0069\u006d\u0065\u0020\u05d7\u05d5\u05de\u05d5\u05e1\u0020\u05d9\u05e7\u05e8\u0069\u0073\u0020\u0067\u0072\u0065\u0065\u006e",
      "\u05d7\u05d5\u05de\u05d5\u05e1\u0020\u006c\u0069\u006d\u0065\u0020\u0069\u0073\u0020\u0067\u0072\u0065\u0065\u006e\u0020\u05d9\u05e7\u05e8","\u062a\u0641\u0627\u062d\u0020\u0623\u062d\u0645\u0631\u0020\u0643\u0628\u064a\u0631","\u0648\u0644\u062f\u0020\u0635\u063a\u064a\u0631\u0020\u006c\u0069\u006d\u0065\u0020\u0069\u0073\u0020\u0067\u0072\u0065\u0065\u006e\u0020\u0648\u062c\u0645\u064a\u0644"
       };

              JList list;

               public SimpleList()
              {
                      this.setLayout(new BorderLayout());
                      list = new JList(label);
                      list.setFont(new Font("Lucida Sans Regular",Font.PLAIN,25));
                      JScrollPane pane = new JScrollPane(list);
                      add(pane, BorderLayout.NORTH);
              }

              public void actionPerformed(ActionEvent e)
              {
                      int selected[] = list.getSelectedIndices();
                      System.out.println("Selected Elements: ");

                      for (int i=0; i < selected.length; i++)
                      {
                              String element =
                              (String)list.getModel().getElementAt(selected[i]);
                              System.out.println(" Item " + element);
                      }
              }
      }



      ======================================================================

            Unassigned Unassigned
            jbenavrasunw Jonathan Benavraham (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: