[OpenJDK 2D-Dev] RFR: 8051519: Deprecate sun.java2d.SunGraphicsEnvironment.useAlternateFontforJALocales

Phil Race philip.race at oracle.com
Mon Feb 8 20:44:38 UTC 2016


Adding missing bug synopsis to the subject line.

-phil.

On 02/08/2016 12:40 PM, Phil Race wrote:
> Bug : https://bugs.openjdk.java.net/browse/JDK-8051519
> This internal AP being deprecated in preparation for removal in JDK 10.
> Ordinarily we would remove it directly but it is known to be used by
> non-JDK code, hence the deprecation. CCC approval is already obtained
>
> diff in-line below
>
> diff --git 
> a/src/java.desktop/share/classes/sun/java2d/SunGraphicsEnvironment.java b/src/java.desktop/share/classes/sun/java2d/SunGraphicsEnvironment.java
> --- 
> a/src/java.desktop/share/classes/sun/java2d/SunGraphicsEnvironment.java
> +++ 
> b/src/java.desktop/share/classes/sun/java2d/SunGraphicsEnvironment.java
> @@ -208,8 +208,7 @@
>       * to use Mincho instead of Gothic for dialoginput in JA locales
>       * on windows. Not needed on other platforms.
>       *
> -     * DO NOT MOVE OR RENAME OR OTHERWISE ALTER THIS METHOD.
> -     * ITS USED BY SOME NON-JRE INTERNAL CODE.
> +     * @deprecated as of JDK9. To be removed in a future release.
>       */
>      public static void useAlternateFontforJALocales() {
>          getFontManagerForSGE().useAlternateFontforJALocales();
>
> -phil.
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20160208/a33647b9/attachment.html>


More information about the 2d-dev mailing list