-
Bug
-
Resolution: Won't Fix
-
P2
-
6u23
-
generic
-
generic
Trying to verify the bug http://monaco.sfbay.sun.com/detail.jsf?cr=6458123
Since there is a compilation issue with the test case from the 6u23 ws at http://jdksrc.sfbay.sun.com/hg/6u23/Jcg/j2se tracked under http://monaco.sfbay.sun.com/detail.jsf?cr=6997384,
Used the test case from the 7ws (test http://closedjdk.sfbay.sun.com/jdk7/swing/jdk/test/closed/javax/swing/JMenuItem/6458123/bug6458123.java) to verify the bug 6458123.
I'm getting the following exception and the test is failing with
checkLabelRect() passed
checkBounds() passed
----------System.err:(32/1985)----------
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:998)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1326)
at bug6458123.main(bug6458123.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.RuntimeException: Wrong left alignmet: previous = 43, current = 42, textRect, java.awt.Rectangle[x=42,y=2,width=278,height=16]
at bug6458123.checkLeftAlignment(bug6458123.java:651)
at bug6458123.checkAlignment(bug6458123.java:636)
at bug6458123.checkAlignments(bug6458123.java:609)
at bug6458123.checkMenuItem(bug6458123.java:122)
at bug6458123.testMenu(bug6458123.java:91)
at bug6458123.test(bug6458123.java:79)
at bug6458123.access$000(bug6458123.java:22)
at bug6458123$1.run(bug6458123.java:55)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
JavaTest Message: shutting down test
whereas this test passes with jdk7-b116-PIT build, so this could be a regression. Please see the attached log file
-----------------------------------
The following test info is for the qare tool
closed/javax/swing/JMenuItem/6458123/bug6458123.java
test/closed/javax/swing/JMenuItem/6458123/bug6458123.java
test/javax/swing/JMenuItem/6458123/bug6458123.java
Results with 6u23 and 7 are attached.
2 issues we're covering here.
1. Compilation error
2. Failure of the testcase after correcting the compilation error.
Since there is a compilation issue with the test case from the 6u23 ws at http://jdksrc.sfbay.sun.com/hg/6u23/Jcg/j2se tracked under http://monaco.sfbay.sun.com/detail.jsf?cr=6997384,
Used the test case from the 7ws (test http://closedjdk.sfbay.sun.com/jdk7/swing/jdk/test/closed/javax/swing/JMenuItem/6458123/bug6458123.java) to verify the bug 6458123.
I'm getting the following exception and the test is failing with
checkLabelRect() passed
checkBounds() passed
----------System.err:(32/1985)----------
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:998)
at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1326)
at bug6458123.main(bug6458123.java:53)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.RuntimeException: Wrong left alignmet: previous = 43, current = 42, textRect, java.awt.Rectangle[x=42,y=2,width=278,height=16]
at bug6458123.checkLeftAlignment(bug6458123.java:651)
at bug6458123.checkAlignment(bug6458123.java:636)
at bug6458123.checkAlignments(bug6458123.java:609)
at bug6458123.checkMenuItem(bug6458123.java:122)
at bug6458123.testMenu(bug6458123.java:91)
at bug6458123.test(bug6458123.java:79)
at bug6458123.access$000(bug6458123.java:22)
at bug6458123$1.run(bug6458123.java:55)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
JavaTest Message: shutting down test
whereas this test passes with jdk7-b116-PIT build, so this could be a regression. Please see the attached log file
-----------------------------------
The following test info is for the qare tool
closed/javax/swing/JMenuItem/6458123/bug6458123.java
test/closed/javax/swing/JMenuItem/6458123/bug6458123.java
test/javax/swing/JMenuItem/6458123/bug6458123.java
Results with 6u23 and 7 are attached.
2 issues we're covering here.
1. Compilation error
2. Failure of the testcase after correcting the compilation error.
- duplicates
-
JDK-6997384 Compilation Error in test\javax\swing\JMenuItem\6458123\bug6458123.java
- Closed
- relates to
-
JDK-6458123 Bugs in menu item layout
- Closed