JDK-6888634 : test/closed/javax/swing/Popup/TaskbarPositionTest.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u10,7,7u4
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_vista
  • CPU: generic,x86
  • Submitted: 2009-10-06
  • Updated: 2014-10-24
  • Resolved: 2012-04-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u6Fixed 8 b34Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
The regression test fails with JDK 7b73 on X11 (linux-i586, Gnome/Metacity 2.24) with the following output:

----------System.out:(2/236)----------
We do not match! java.awt.Rectangle[x=0,y=24,width=1920,height=1176] / java.awt.Rectangle[x=0,y=0,width=0,height=0]
We do not match! java.awt.Rectangle[x=0,y=24,width=1920,height=1176] / java.awt.Rectangle[x=0,y=0,width=109,height=121]
----------System.err:(13/704)----------
java.lang.RuntimeException: Test failed
	at TaskbarPositionTest.main(TaskbarPositionTest.java:379)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:617)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:717)

Comments
EVALUATION There are two problems: 1. After fis of CR 6580930 popup can overlap taskbar. Therefore TaskbarPositionTest.java should be corrected 2. There is a regression after fix of CR 6694823: if left part of combobox is off the screen then popup coordinates is not corrected and popup is partial visible. We should fix the regression
21-03-2012

EVALUATION The test opens various types of popup menus and checks are their rectangles fit in screen dimension. In particular it positions a menu nearly the bottom of the screen and observes that its rectangle is outside the screen. Visually it's not the case. Indeed the java api provides screen size minus talkbar rectangle size. On my Win7 it's less than original screen size for about 40 pixels. On ubuntu it also doesn't take into consideration the taskbar. Although it doesn't prevent the popups to be shown properly on screen (they may overlap taksbars), test fails. It's a long story (e.g. 6677463) with screen borders and I don't see a problem with current java api concerning this particular test.
26-04-2011