This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 423751 - [ActivityMgmt] testActivityListener test failed: junit.framework.AssertionFailedError
Summary: [ActivityMgmt] testActivityListener test failed: junit.framework.AssertionFai...
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3.1   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 4.4 M7   Edit
Assignee: Wojciech Sudol CLA
QA Contact: Wojciech Sudol CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-10 15:37 EST by Ludmila Shikhvarg CLA
Modified: 2014-04-15 05:14 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludmila Shikhvarg CLA 2013-12-10 15:37:04 EST
Version: 4.3.1
Build id: M20130911-1000

testActivityListener test in org.eclipse.ui.tests package is failed with jdk8 cross platforms:
N/A
junit.framework.AssertionFailedError
at org.eclipse.ui.tests.activities.DynamicTest.testActivityListener(DynamicTest.java:317)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:655)
at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:310)
at org.eclipse.test.UITestApplication$2.run(UITestApplication.java:197)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4145)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3762)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:140)
at org.eclipse.test.UITestApplication.run(UITestApplication.java:62)
at org.eclipse.test.UITestApplication.start(UITestApplication.java:212)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
at org.eclipse.core.launcher.Main.main(Main.java:34)

How to reproduce:
1. Install jdk8 from http://jdk8.java.net/download.html 
2. Run ui 

The failure is reproducible on windows (32/64), linux (32/64) and macosx
Comment 1 Dani Megert CLA 2014-04-11 06:06:34 EDT
Hi Wojciech. Can you take a look why it constantly fails with JRE 8 but not JRE 7?
Comment 2 Wojciech Sudol CLA 2014-04-11 06:16:08 EDT
OK, I will do this later today.
Comment 3 Wojciech Sudol CLA 2014-04-11 15:50:57 EDT
The implementation of HashMap has changed in Java 8. In the test we relay on the order of stored elements in a HashMap(!), which now is different. I will correct the test.
Comment 4 Wojciech Sudol CLA 2014-04-14 05:11:03 EDT
Review URL: https://git.eclipse.org/r/24944
Comment 6 Dani Megert CLA 2014-04-15 05:14:07 EDT
Verified in N20140414-2000.