RFR: 8264743: Add forRemoval for deprecated classes and method in javax/swing/plaf/basic

Phil Race prr at openjdk.java.net
Sun Feb 6 18:56:04 UTC 2022


On Mon, 24 Jan 2022 09:38:09 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> Few methods and classes were deprecated in JDK-8049700 where it was decided to add forRemoval in jdk19. 
> Added "forRemoval" to start the process of removing in near future jdk release.

"where it was decided to add forRemoval " 
The actual sequence was that the previous fix proposed for Removal but even a cursory search found that
external L&Fs uses these
What was *decided* was to not do forRemoval then and it was  *suggested* it could be a follow-up bug for a later release, as proposed here. But I don't see sign we've tried to engage with the maintainers of those L&Fs.

Because Swing is so widely used I suspect what was found is not all of i and forRemoval in Swing has a high probability of breaking some apps. 

So we can do this now but we should not remove until after the next LTS which is JDK 12. So JDK 22.
And in the interim I strongly suggest some outreach to any L&Fs that might be broken,

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

PR: https://git.openjdk.java.net/jdk/pull/7194



More information about the client-libs-dev mailing list