Bug 83318 - [1.5] 'Open declaration' fails for type variables in class files
Summary: [1.5] 'Open declaration' fails for type variables in class files
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux-GTK
: P3 normal (vote)
Target Milestone: 3.2 RC1   Edit
Assignee: David Audel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-20 11:52 EST by Tom Hofmann CLA
Modified: 2006-04-13 09:48 EDT (History)
1 user (show)

See Also:


Attachments
Possible fix (1.03 KB, text/plain)
2005-06-13 06:48 EDT, David Audel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Hofmann CLA 2005-01-20 11:52:31 EST
I20050118 + 0120 ZRH plugin-export

- open java.lang.Iterable (assuming you don't have it in source)
- Ctrl+click (or press F3) on the 'T' in the method declaration

expected: 'T' in the interface declaration is selected
actual: caret jumps to the beginning of the document

Note: the same works for types that are available in source
Comment 1 Dirk Baeumer CLA 2005-01-20 12:35:51 EST
Assuming a code resolve problem with type parameters in binary types.

Moving to JDT/Core.
Comment 2 David Audel CLA 2005-06-13 06:44:07 EDT
ITypeParameter#getNameRange() doesn't return the correct range when the type
parameter is inside a bynary type.
Comment 3 David Audel CLA 2005-06-13 06:48:06 EDT
Created attachment 22897 [details]
Possible fix

getNameRange() did not call the source mapper.
Comment 4 Philipe Mulet CLA 2006-04-03 07:03:46 EDT
+1 for 3.2RC1
Comment 5 David Audel CLA 2006-04-03 07:05:18 EDT
Fixed and test added
  ResolceTests_1_5#test0101()
Comment 6 Maxime Daniel CLA 2006-04-13 09:48:15 EDT
Verified for 3.2 RC1 using Build id: I20060413-0010.