<Swing Dev> RFR: 8270859: Post JEP 411 refactoring: client libs with maximum covering > 10K
Phil Race
prr at openjdk.java.net
Sat Jul 17 02:00:51 UTC 2021
On Fri, 16 Jul 2021 20:52:08 GMT, Weijun Wang <weijun at openjdk.org> wrote:
> This is the last part of Post JEP 411 refactoring that makes `@SuppressWarnings("removal")` more fine grained. This fix deals with all client libs annotations that cover more than 10K bytes of code.
src/java.desktop/unix/classes/sun/print/PrintServiceLookupProvider.java line 130:
> 128: }
> 129:
> 130: osname = System.getProperty("os.name");
I suppose that you are relying on the default security settings which allow access to this property ?
Do you have reason to believe that it is common to make this assumption in code in the JDK ?
Why take the chance ?
-------------
PR: https://git.openjdk.java.net/jdk/pull/4815
More information about the swing-dev
mailing list