Bug 58470 - [1.5] Source mapper fooled by generics
Summary: [1.5] Source mapper fooled by generics
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-14 10:10 EDT by Jerome Lanneluc CLA
Modified: 2005-01-11 11:03 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jerome Lanneluc CLA 2004-04-14 10:10:50 EDT
I20040413

If you open the 1.5 type java.lang.Collections, the source mapper cannot 
retrieve the positions of the add(E) method. It looks like the binary method in 
the Java model is add(Object).
Comment 1 Philipe Mulet CLA 2004-04-14 10:46:36 EDT
We should address this in 1.5 stream only. If simple enough, then we may 
consider to backport it to HEAD stream to improve people's experience. But this 
feels very unlikely as it will drag in more support behind it.
Comment 2 Jerome Lanneluc CLA 2004-06-25 09:24:20 EDT
Changed SourceMapper.getUnqualifiedMethodHandle(...) to to handle generic 
parameter types.

Added regression tests AttachSourceTests.testGeneric1() and testGeneric2()