Bug 73256 - [1.5][signature] ClassCastException in SourceType#getTypeParameterSignatures
Summary: [1.5][signature] ClassCastException in SourceType#getTypeParameterSignatures
Status: RESOLVED DUPLICATE of bug 73255
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-03 12:46 EDT by Tobias Widmer CLA
Modified: 2004-09-06 06:55 EDT (History)
0 users

See Also:


Attachments
stack trace (717 bytes, patch)
2004-09-03 12:48 EDT, Tobias Widmer CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Widmer CLA 2004-09-03 12:46:46 EDT
20040831

steps to reproduce:
- Create classes B and A:

class B<T,R,S> extends A<R> {
    R foo (A<R> r) {
        A<R> s= r;
        return null;
    }

- Hover over a type declaration (like "B<T,R,S>") or a local variable with 
generic type (like s)
Comment 1 Tobias Widmer CLA 2004-09-03 12:48:42 EDT
Created attachment 14403 [details]
stack trace
Comment 2 Jerome Lanneluc CLA 2004-09-06 06:54:25 EDT
To reproduce an inner class with the same name as the type parameter must 
exist:

class B<T,R,S> extends A<R> {
 
   class T<String,R,T> {
 
   }
}
Comment 3 Jerome Lanneluc CLA 2004-09-06 06:55:16 EDT
Element info for the inner class is returned instead of the type parameter 
info. Same problem as in bug 73255.

*** This bug has been marked as a duplicate of 73255 ***