RFR: 8377192: Remove AppContext from MenuSelectionManager
Phil Race
prr at openjdk.org
Wed Feb 4 20:53:14 UTC 2026
On Wed, 4 Feb 2026 20:44:02 GMT, Phil Race <prr at openjdk.org> wrote:
> remove AppContext from Swing's MenuSelectionManager
src/java.desktop/share/classes/javax/swing/MenuSelectionManager.java line 75:
> 73: // installing additional listener if found in the AppContext
> 74: Object o = context.get(SwingUtilities2.MENU_SELECTION_MANAGER_LISTENER_KEY);
> 75: if (o instanceof ChangeListener listener) {
Why am I not preserving this listener logic ?
Well nothing adds such a listener to the AppContext or anywhere else.
This is the only usage ... because this was added to be used from closed Java Plugin applet related code that we don't have in current JDK. So it has been obsolete for a while.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29579#discussion_r2765914076
More information about the client-libs-dev
mailing list