Bug 85026 - [1.5] call to add on raw Vector says isRawMethod() == false
Summary: [1.5] call to add on raw Vector says isRawMethod() == false
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.1 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-11 12:13 EST by Adam Kiezun CLA
Modified: 2005-02-12 13:49 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 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.