Bug 80742 - Open declaration fails on generic methods when target classfile compliance=1.4 and selected jre=1.5
Summary: Open declaration fails on generic methods when target classfile compliance=1....
Status: VERIFIED DUPLICATE of bug 299384
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 3.7 M4   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-10 18:46 EST by Khaled Agrama CLA
Modified: 2010-12-07 12:28 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Khaled Agrama CLA 2004-12-10 18:46:28 EST
Reproduction:
1. Go to preferences and change java compiler compliance to 1.4.  Select JDK 1.5
as your JRE.
2. Create a new project and add the following class:
public class TestClass {
	void doSomething() {
		Set x = new HashSet();
		x.containsAll(new HashSet());
		
	}
}
3. Position the cursor on the containsAll call and press F3.

Notice that the open declaration does not work.  If you move the compliance to
1.5 or select a 1.4 JRE, it will work.
Comment 1 Khaled Agrama CLA 2004-12-10 20:02:03 EST
FYI I'm running build I200412070800.
Comment 2 David Audel CLA 2005-01-19 12:11:54 EST
SelectionEngine resolve the method Set#containAll(Collection) and the java model
contains the method Set#containAll(Collection<?>).
These methods are not identical but are similar. We could return similar methods
if there is no exact match.
Comment 3 Arne Christensen CLA 2006-03-07 08:14:34 EST
This problem also exists in build I20060223-1656
Comment 4 Srikanth Sankaran CLA 2010-11-03 01:06:19 EDT
This mixed mode problem dates back to at least 2004.

This bug is not reproducible anymore on HEAD, is
reproducible on I20101025-1800.

Closing as duplicate of 299384

*** This bug has been marked as a duplicate of bug 299384 ***
Comment 5 Ayushman Jain CLA 2010-12-07 04:27:22 EST
Verified for 3.7M4 using build I20101205-2000.
Comment 6 Olivier Thomann CLA 2010-12-07 12:28:32 EST
Verified using I20101207-0250 (4.1 I-build)