[jdk11u-dev] RFR: 8301119: Support for GB18030-2022
Severin Gehwolf
sgehwolf at openjdk.org
Thu May 25 13:01:59 UTC 2023
On Wed, 24 May 2023 17:53:22 GMT, Andrew John Hughes <andrew at openjdk.org> wrote:
> This is the companion implementation change for the recent specification changes which allowed for the additional characters required to support GB18030-2022.
>
> The following modifications were necessary for 11u:
>
> * Manual copyright header changes in `GB18030.java`, `StandardCharsets.java.template` and `ExtendedCharsets.java.template`. 11u is missing JDK-8229960 ("Remove sun.nio.cs.map system property") and, as with 17, JDK-8260265: "UTF-8 by Default", a JEP added in OpenJDK 18
> * Manual import statement changes in `ExtendedCharsets.java.template` (`SoftReference` was also unused, removed by JDK-8229960 in 17u)
> * Conversion of the `switch` statements to the old style in `GB18030.java` (no Switch Expressions, JEP-361 in OpenJDK 14)
> * We retain `stdcs-solaris` and make the same alteration to remove GB18030 as in `stdcs-aix`, `stdcs-linux` and `stdcs-windows`. The Solaris port was not removed until OpenJDK 15 and this file seems to have been overlooked in that removal, until this change.
>
> Tests in `jdk/java/nio/charset` and `jdk/sun/nio/cs` all passed after patching.
This looks good to me. Thanks!
-------------
Marked as reviewed by sgehwolf (Reviewer).
PR Review: https://git.openjdk.org/jdk11u-dev/pull/1897#pullrequestreview-1443842298
More information about the jdk-updates-dev
mailing list