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

Alphabet character "k", does not displayed correctly on x86 solaris7

XMLWordPrintable

    • merlin
    • x86
    • solaris
    • Verified


      "k" does not displayed correctly with cricket, kestrel and merlin
      on x86 solaris7

      Merlin: Using drawstring, displayed correctly.
              Using drawstring with list does not displayed correctly.

      kestrel,cricket: Both drawstring and drawstring with list does not
              displayed correctly.

      Tested java version :
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Classic VM (build 1.3.0-C, native threads, nojit)

      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0beta-b18)
      Classic VM (build 1.4.0beta-b18, native threads, nojit)

      java version "1.2.2"
      Classic VM (build JDK-1.2.2-W, green threads, sunwjit)


      Reproduce to:
      1. Compile and execute test program below.
      2. Displayed above is using drawstring with list,
         displayed below is using drawstring.
      3. You can confirm the same phenomenon as above.


      ----------------------------------------------
      //Mangle.java
      import java.awt.*;

      public class Mangle extends Canvas {

           private static String str;

           public Mangle() {
                str = new String("ABCDEFGHIJKLOMNOPQRSabcdefghijklmnopqrstuvwxyz ");
           }

           public void paint(Graphics g) {
              g.drawString(str, 0, 50);
           }

       public static void main(String args[]) {
         Frame f = new Frame();
         Mangle m = new Mangle();
         List l = new List();
         l.add(str);
         f.add(l, BorderLayout.NORTH);
         f.add(m, BorderLayout.SOUTH);
         m.setSize(500, 100);
         f.pack();
         f.show();
       }
         
      }
      ----------------------------------------------

            ehawkessunw Eric Hawkes (Inactive)
            kkichisunw Kichi Kichi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: