On Tue, 6 Jul 2021 11:32:18 GMT, Сергей Цыпанов <github.com+10835776+stsypa...@openjdk.org> wrote:
>> It's not a public API. As I see from other PR/commits changing >> package-private methods shouldn't be a problem. > > Even non-public method can be called via reflection, so I'd be cautios about > changing return type Apps should not be doing that and the desktop module along with most of the rest of the JDK is strongly encapsulated and illegal access will be denied. But given the relationship with the sole (?) caller I think this is not worth the churn. Not exactly an MT hotspot. I'd revert the changes here and in MenuBar. ------------- PR: https://git.openjdk.java.net/jdk/pull/4680