Bug 44772 Java Search opens the wrong file
Build: 3.0M4 1. Navigate > Open type... 2. Enter 'Document' 3. In the list of available choice, click on the interface 'Document'. There are three potential qualifiers: i. javax.swing.text. ii. org.w3c.dom (from the xerces plug-in that I have in my workspace). iii. org.w3c.dom (from rt.jar of my Sun's 1.4.2 JRE) 4. Choose iii. Click OK. You will see that the interface that I chose did not open. Instead the one from ii did.
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TypeInfoTest.java
private static final Class THIS= TypeInfoTest.class;
	
	private IJavaProject fJProject1;
	private IJavaProject fJProject2;
	public TypeInfoTest(String name) {
		super(name);
	}
	public static Test allTests() {
		return new ProjectTestSetup(new TestSuite(THIS));
	}
	public static Test suite() {
		if (true) {
			return allTests();
		} else {
			TestSuite suite= new TestSuite();
			suite.addTest(new TypeInfoTest("test1"));
			return suite;
		}	
	}
	protected void setUp() throws Exception {
		fJProject1= JavaProjectHelper.createJavaProject("TestProject1", "bin");
		assertNotNull("jre is null", JavaProjectHelper.addRTJar(fJProject1));
		
		fJProject2= JavaProjectHelper.createJavaProject("TestProject2", "bin");
		assertNotNull("jre is null", JavaProjectHelper.addRTJar(fJProject2));