<Swing Dev> [13] RFR 8196096: javax/swing/JPopupMenu/6580930/bug6580930.java fails
Sergey Bylokhov
Sergey.Bylokhov at oracle.com
Thu May 23 16:12:25 UTC 2019
On 23/05/2019 08:58, semyon.sadetsky at oracle.com wrote:
>> This property was introduced long before the macosx-port via JDK-4425878.
>> If the test does not work properly because of the product bug, then you should not work around it, but instead, you should create a new product bug and add this test and a new bugid to the problem list for macOS.
> I don't agree. Java specification doesn't say that the popup menu shall overlap the OS taskbar. The test scenario shouldn't expect that. Permission to overlap taskbar is determined by the security settings and the platform default settings. By adding adjustPopupLocationToFit=false the test is abstracted from those settings which makes the overlap testing sensible. Otherwise the test may fail in some environments and platforms.
> As for the mac platform where the taskbar overlapping is disabled by default in the toolkit. It was intentionally disabled by fixing of a bug reported by NetBeans team. There is JDK-7124313 reported internally which requests the opposite, but it requires investigation at first, it is not clear that we can do this.
You just workaround the case for which the test was created, this is not a test bug, and it should not be fixed by the change in the test during test_sprint.
--
Best regards, Sergey.
More information about the swing-dev
mailing list