RFR: 8319192: Remove javax.swing.plaf.synth.SynthLookAndFeel.load(URL url) [v3]

Sergey Bylokhov serb at openjdk.org
Thu Mar 6 00:14:54 UTC 2025


On Wed, 5 Mar 2025 23:07:06 GMT, Phil Race <prr at openjdk.org> wrote:

>> Back in JDK 21 we deprecated-for-removal SynthLookAndFeel.load(URL) and targeted it to be removed under this bug ID in JDK 25 .. which is now here.
>> 
>> No open tests needed to be updated to accommodate this removal 
>> I did find one closed manual test, written to explicitly test this API back when it was added, and I'll need to remove that, but it doesn't affect this PR.
>> 
>> There will be a CSR (and probably a release note too).
>
> Phil Race has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8319192

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthParser.java line 38:

> 36: import java.io.InputStream;
> 37: import java.net.URL;
> 38: import java.net.URLClassLoader;

Is URLClassLoader no longer used?

src/java.desktop/share/classes/javax/swing/plaf/synth/SynthParser.java line 216:

> 214:      * @param inputStream XML document containing the styles to read
> 215:      * @param factory DefaultSynthStyleFactory that new styles are added to
> 216:      * @param urlResourceBase the URL used to resolve any resources, such as Images

The description of this method includes information about the URL

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23909#discussion_r1982362397
PR Review Comment: https://git.openjdk.org/jdk/pull/23909#discussion_r1982360613


More information about the client-libs-dev mailing list