RFR: 8300891: Deprecate for removal javax.swing.plaf.synth.SynthLookAndFeel.load(URL url)
Alexey Ivanov
aivanov at openjdk.org
Thu Jan 26 19:44:19 UTC 2023
On Tue, 24 Jan 2023 23:29:58 GMT, Phil Race <prr at openjdk.org> wrote:
> SynthLookAndFeel.load(URL) is problematic because applications need to trust the URL.
> As documented in the bug report there are alternative mechanisms and JDK itself has not used this for the two Synth based L&Fs : Nimbus and GTK.
> So deprecating - for removal - and adding warnings now in the docs is appropriate.
src/java.desktop/share/classes/javax/swing/plaf/synth/SynthLookAndFeel.java line 625:
> 623: * trust, is strongly discouraged.
> 624: * The alternative mechanisms to load styles from an {@code InputStream}
> 625: * located as a resource co-located with the application or by
“…an `InputStream` *located* as a resource co-located…”
Will it sound clearer if the word “located” is removed?
-------------
PR: https://git.openjdk.org/jdk/pull/12175
More information about the client-libs-dev
mailing list