Community
Participate
Working Groups
Created attachment 130952 [details] TestCase Build ID: 2.0.0.204-dev Steps To Reproduce: 1. Install SWTBot into Eclipse 3.5M6 2. Import the attached test case project 3. Run swtbot.LinkageTest as an SWTBot test 4. Get the following error: java.lang.LinkageError: loader constraint violation: loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) previously initiated loading for a different type with name "org/hamcrest/Matcher" Both org.junit4 and org.hamcrest export the org.hamcrest package and both bundles contain org.hamcrest.Matcher. The failing method call is: org.junit.Assert.assertThat("asdf", is("asdf")); I think either the org.junit4 bundle needs to be fixed (see bug 266962), or the org.hamcrest package SWTBot ships needs to exclude hamcrest-core.
Closing as duplicate of bug bug 268881. *** This bug has been marked as a duplicate of bug 268881 ***