-
Bug
-
Resolution: Fixed
-
P4
-
8, 11
-
b18
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8205270 | 11.0.1 | Philip Race | P4 | Resolved | Fixed | team |
JDK-8254959 | 8u281 | Philip Race | P4 | Resolved | Fixed | b03 |
JDK-8257345 | emb-8u281 | Philip Race | P4 | Resolved | Fixed | team |
java/awt/font/MonospacedGlyphWidth/MonospacedGlyphWidthTest.java failed in a random test run
java.lang.RuntimeException: Test Failed: characters have different width!
at MonospacedGlyphWidthTest.checkChars(MonospacedGlyphWidthTest.java:55)
at MonospacedGlyphWidthTest.main(MonospacedGlyphWidthTest.java:84)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
at java.base/java.lang.Thread.run(Thread.java:832)
It appears to have been run on a system where the native
platform mapped IPAGothic (ipag.ttf) to be used for monospaced.
That font is a CJK font where the ascii chars are half the width
of CJK and many other characters, so the test fails.
It seems it is just too hard to be sure what you have when
a logical font is being used.
java.lang.RuntimeException: Test Failed: characters have different width!
at MonospacedGlyphWidthTest.checkChars(MonospacedGlyphWidthTest.java:55)
at MonospacedGlyphWidthTest.main(MonospacedGlyphWidthTest.java:84)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115)
at java.base/java.lang.Thread.run(Thread.java:832)
It appears to have been run on a system where the native
platform mapped IPAGothic (ipag.ttf) to be used for monospaced.
That font is a CJK font where the ascii chars are half the width
of CJK and many other characters, so the test fails.
It seems it is just too hard to be sure what you have when
a logical font is being used.
- backported by
-
JDK-8205270 MonospacedGlyphWidthTest.java failed again
-
- Resolved
-
-
JDK-8254959 MonospacedGlyphWidthTest.java failed again
-
- Resolved
-
-
JDK-8257345 MonospacedGlyphWidthTest.java failed again
-
- Resolved
-