[OpenJDK 2D-Dev] RFR: 8255387: Japanese characters were printed upside down on AIX [v3]

Toshio Nakamura tnakamura at openjdk.java.net
Mon Dec 7 07:32:30 UTC 2020


On Wed, 2 Dec 2020 04:31:04 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> The testing is in progress.
>
> The new test fails on the headless macs(I cannot reproduce it on my laptop):
> 
> ----------System.out:(1/17)----------
> ErrorCount:53,53
> ----------System.err:(13/1055)----------
> java.lang.RuntimeException: Incorrect mirrored character with java.awt.Font[family=AppleMyungjo,name=AppleMyungjo,style=plain,size=12]
> 	at MirrorTest.main(MirrorTest.java:147)
> 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78)
> 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
> 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
> 	at java.base/java.lang.Thread.run(Thread.java:831)
> 
> Do we need to mark it as headful, or it might be a product bug?

Apologize for the trouble. That's my testcase issue.
That error may occur on macOS High Sierra. Newer OSes (Mojave, Catalina, and Big Sur) may not have the problem. Differences between antialias on and off are bigger than the real error which I'd like to detect.
So, I revised the test to compare the center of gravity of each glyph.
Could you kindly re-review and retest this?

-------------

PR: https://git.openjdk.java.net/jdk/pull/1218


More information about the 2d-dev mailing list