RFR: 8300891: Deprecate for removal javax.swing.plaf.synth.SynthLookAndFeel.load(URL url)

Phil Race prr at openjdk.org
Thu Jan 26 20:03:17 UTC 2023


On Thu, 26 Jan 2023 19:41:07 GMT, Alexey Ivanov <aivanov 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?

"using a resource co-located with the application"  ?

I'm going to write up the CSR now since the wording seems mostly settled.

-------------

PR: https://git.openjdk.org/jdk/pull/12175



More information about the client-libs-dev mailing list