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

Phil Race prr at openjdk.org
Wed Jan 25 01:50:06 UTC 2023


On Wed, 25 Jan 2023 00:13:02 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

> I do not think that this method should/must be used by custom L&F only, it is a way to provide custom styles for an existing L&f including Nimbus like discussed here:
> https://stackoverflow.com/questions/11564597/how-to-use-synthlookandfeel-with-xml-file-where-xml-file-path-will-load-the-fil
> There is a way to check the permission - security manager, ohh we deprecated it as well, time to rethink that? or do we plan to delete all methods which use URL, or add custom properties here and there to check access?

Who knows, we may deprecate more methods when there's a good reason,
but this one regardless of whether it is the sole source of styles for a Synth L&F or customisation is a prime candidate for deprecation and subsequent removal.

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

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



More information about the client-libs-dev mailing list