On Fri, 19 May 2023 16:04:50 GMT, Alexander Zvegintsev <azveg...@openjdk.org> wrote:
>> Alexander Zvegintsev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> move to toolkit > > src/java.desktop/share/classes/javax/swing/JPopupMenu.java line 763: > >> 761: >> 762: private Window getMenuInvoker() { >> 763: if (invoker instanceof Window menuInvoker) { > > [Pattern matching for instanceof](https://openjdk.org/jeps/394) is used. > Maybe we shouldn't use this if we plan to backport this change to the JDK < 16 I wouldn't worry about that. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/13830#discussion_r1199191097