-
Bug
-
Resolution: Fixed
-
P3
-
1.2.2, 1.3.0, 1.4.0
-
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();
}
}
----------------------------------------------