This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
As reported in bug 208445 org.openide.awt.ActionsTest.testTooltipsContainAccelerator is failing on Mac with JDK7u4. Please, evaluate and possibly fix it. junit.framework.AssertionFailedError: null at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at junit.framework.Assert.assertTrue(Assert.java:27) at org.openide.awt.ActionsTest.testTooltipsContainAccelerator(ActionsTest.java:318) 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:601) at junit.framework.TestCase.runTest(TestCase.java:168) at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:95) at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:396) at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:325) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:701) at java.awt.EventQueue.access$000(EventQueue.java:102) at java.awt.EventQueue$3.run(EventQueue.java:662) at java.awt.EventQueue$3.run(EventQueue.java:660) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:671) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139) at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Created attachment 115759 [details] org.openide.awt.MnemonicsTest.testSetLocalizedTextWithModel failure. Also please evaluate MnemonicsTest failure.
Please evaluate ASAP, escalated by JDK team ... we need to know whether it's a random failuer, issue in test or problem in JDK.
the same tests fail also when running on jdk 1.6. and it seems the tests are wrong - we remove all mnemonics on mac os x. is there any hudson job running the tests on a mac machine?
Not yet, we are waiting for 2 Macs now and will add one to the matrix soon. Standa, does it mean it's a bug in test right ?
(In reply to comment #4) > Not yet, we are waiting for 2 Macs now and will add one to the matrix soon. > > Standa, does it mean it's a bug in test right ? right, there are no mnemonics on a mac so we can't expect any in unit tests either
Ok, so could you please fix the tests ? We will include this change into 7.1.1 test pack which will be used by JDK team to test next updates of JDK 7(including Mac's one). Thanks in advance
i fixed MnemonicsTest in core-main b87c3e5e8d30 there is one regression in JDK 1.7 u4 though - ActionsTest.testTooltipsContainAccelerator fails because the expected tooltip for CTRL+C keyboard shortcut should be something like "^+C" on mac os x. however JDK u4 says it's "Ctrl+C"
transplanted to release71_fixes branch as 6f4f85827612
Standa, I think you can close as fixed now, thanks a lot.
Integrated into 'main-golden', will be available in build *201202280400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b87c3e5e8d30 User: S. Aubrecht <saubrecht@netbeans.org> Log: #208451 - there are no mnemonics on Mac
closing