Bug 85026

Summary: [1.5] call to add on raw Vector says isRawMethod() == false
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M5   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Adam Kiezun CLA 2005-02-11 12:13:17 EST
3.1 M4
i have
void f(){
   Vector v= new Vector();
   v.add("");
}

in the invocation node, i get the method binding and ask isRawMethod()
it says 'false'. As far as I understand the spec/doc, it should be 'true'.
Comment 1 Olivier Thomann CLA 2005-02-11 12:55:21 EST
I will investigate.
Comment 2 Olivier Thomann CLA 2005-02-11 13:49:33 EST
Fixed and released in HEAD.
Regression test added in ASTConverter15Test.test0140.
Comment 3 Philipe Mulet CLA 2005-02-11 18:17:39 EST
In compiler land, only generic methods can be marked as raw when type inference
figured matching a raw type argument.

<T> void foo(List<T> t)   invoked with:  foo(List)

The one in this testcase rather looks like a member of a raw type, and doesn't
qualify as a raw method. 
Comment 4 Adam Kiezun CLA 2005-02-11 21:42:04 EST
ok, the doc was not clear about this
Comment 5 Olivier Thomann CLA 2005-02-11 23:45:42 EST
I will remove my change then.
Comment 6 Olivier Thomann CLA 2005-02-12 13:49:05 EST
Closing as INVALID since the method is not supposed to be a raw method in this case.