On Tue, 28 Jun 2022 06:27:29 GMT, Sergey Bylokhov <[email protected]> wrote:

> > > Are you sure? It has macOS specific code added as part of the 
> > > https://bugs.openjdk.org/browse/JDK-8196096
> > 
> > 
> > It deproblemlist it for windows. macos specific code was added to check for 
> > heavyweight poup in non-macos platform which we dont have for macos for 
> > which have existing bug 
> > [JDK-7184956](https://bugs.openjdk.org/browse/JDK-7184956)
> 
> That code was not added, it was excluded from executing on macOS. And as the 
> reason for that excluded code the 
> [JDK-7184956](https://bugs.openjdk.org/browse/JDK-7184956) was referenced. 
> But current failure is different. On my system it fails due to wrong "frame" 
> location, it jumps from the "expected" location. In Swing that expected 
> location is calculated by the JPopupMenu.adjustPopupLocationToFitScreen so we 
> can mimic that logic in the test. Or we can test the large menu to check that 
> the popup overlaps the dock.

I am not sure why we should tinker with existing testcase when the similar 
popupmenu with 7 items in "Settings" (as shown in bugfix description) does not 
overlap the taskbar in native.

@prrace Can we please ask Apple if this behaviour is a bug in Java that we dont 
overlap the taskbar for small popupmenu
or is it expected?

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

PR: https://git.openjdk.org/jdk/pull/9294

Reply via email to