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

2D drawString method causes VM crash on Solaris zh 2/6/2/7

    XMLWordPrintable

Details

    • 2d
    • 1.2.2
    • generic, x86
    • solaris_2.6, solaris_9, windows_nt
    • Verified

    Description

      Attached sample showes the problem

      import java.awt.*;
      import java.awt.font.*;
      import java.awt.geom.*;

      public class Test extends Canvas {
          String text = new String("\u4e00\u4e01\u4e02\u4e03");
          Font font = new Font("monospaced", Font.PLAIN, 40);
          public Test(){
              super();
              setSize(600, 60);
              setBackground(Color.white);
          }

          public static void main( String[] args ) {
              Frame frame = new Frame("Test");
              frame.setLayout(new BorderLayout());
              frame.add("Center", new Test());
              frame.pack();
              frame.setVisible(true);
          }

          public void paint(Graphics g) {
              Graphics2D g2 = (Graphics2D)g;
              g2.setColor(Color.red);
      System.out.println("text=" + text);
              g2.setFont(font);
              g2.drawString(text, 50, 50);
          }
      }

      Attachments

        Issue Links

          Activity

            People

              tnguyensunw Thanh Nguyen (Inactive)
              sherman Xueming Shen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: