[OpenJDK 2D-Dev] PING: RFR: 8249215: JFrame::setVisible crashed with -Dfile.encoding=UTF-8

Yasumasa Suenaga suenaga at oss.nttdata.com
Mon Jul 20 07:29:38 UTC 2020


PING: could you review it?

>    JBS: https://bugs.openjdk.java.net/browse/JDK-8249215
>    webrev: http://cr.openjdk.java.net/~ysuenaga/JDK-8249215/webrev.00/

Yasumasa

On 2020/07/11 17:39, Yasumasa Suenaga wrote:
> Hi all,
> 
> Please review this change:
> 
>    JBS: https://bugs.openjdk.java.net/browse/JDK-8249215
>    webrev: http://cr.openjdk.java.net/~ysuenaga/JDK-8249215/webrev.00/
> 
> I tried to run Sample.java in JDK-8236161 with -Dfile.encoding=UTF-8, but JVM crashed due to internal error on fastdebug VM. I saw same call stack with JDK-8236161 in hs_err log.
> 
> I investigated it, then I found out current implementation cannot handle default charset.
> 
> If charset is set to UTF-8, it would be handled as "DEFAULT_CHARSET" in WFontConfiguration::initTables. However it does not affect native font name, so we cannot find valid font.
> 
> This change has passed all tests on submit repo (mach5-one-ysuenaga-JDK-8249215-20200711-0655-12566039)
> 
> 
> Thanks,
> 
> Yasumasa


More information about the 2d-dev mailing list