RFR: 8378297: Remove AppContext from several Swing component and related classes

Prasanta Sadhukhan psadhukhan at openjdk.org
Mon Feb 23 09:49:25 UTC 2026


On Thu, 19 Feb 2026 23:20:12 GMT, Phil Race <prr at openjdk.org> wrote:

> Remove AppContext usage from several Swing classes that use it via  Swing utility (still used by other cases so can't remove that yet).
> 
> One ToolTipManager test for the AppContext is removed.

src/java.desktop/share/classes/javax/swing/PopupFactory.java line 723:

> 721:          */
> 722:         private static List<LightWeightPopup> getLightWeightPopupCache() {
> 723:             synchronized (PopupFactory.class) {

I believe it should synchronize on LightWeightPopup class and not on PopupFactory?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29830#discussion_r2839901931


More information about the client-libs-dev mailing list