Bug 83318

Summary: [1.5] 'Open declaration' fails for type variables in class files
Product: [Eclipse Project] JDT Reporter: Tom Hofmann <eclipse>
Component: CoreAssignee: David Audel <david_audel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: gunnar
Version: 3.1   
Target Milestone: 3.2 RC1   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
Possible fix none

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.