Bug 87050 - ASTParser#createASTs(..) cannot resolve method type parameter binding from key
Summary: ASTParser#createASTs(..) cannot resolve method type parameter binding from key
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 86644
  Show dependency tree
 
Reported: 2005-03-03 03:14 EST by Markus Keller CLA
Modified: 2005-03-31 05:23 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 Markus Keller CLA 2005-03-03 03:14:31 EST
HEAD

ASTParser#createASTs(..) cannot resolve method type parameter binding from key:

package p;
public class Cell {
	public <T> void f1(T l) { }
}

The binding key for T is
Lp/Cell;.f1<T:Ljava/lang/Object;>(TT;)V:TT;

The resolved binding for this key is the binding of the enclosing type p.Cell,
whose key is
Lp/Cell;
Comment 1 Jerome Lanneluc CLA 2005-03-08 06:30:13 EST
Added support in BindingKeyParser#parse(boolean) and
BindingKeyResolver#consumeTypeVariable(char[]) to handle type variables from
methods.
Added regression test BatchASTCreationTests#test058()
Comment 2 David Audel CLA 2005-03-31 05:23:59 EST
Verified in I20050330-0500