Bug 97480 - [1.5][compiler] incorrect error on some calls to raw Map.Entry.setValue
Summary: [1.5][compiler] incorrect error on some calls to raw Map.Entry.setValue
Status: CLOSED 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 RC2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-31 10:06 EDT by Adam Kiezun CLA
Modified: 2005-06-10 12:07 EDT (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-05-31 10:06:05 EDT
3.1RC1
but same problem on 3.1M7

public class A {
  void f(Object o){
	((Map.Entry)o).setValue("bug");
		
	Map.Entry me= (Map.Entry)o; 
	me.setValue("ok");
		
	((Vector)o).add("ok");
  }
}

the problem shows up in the first line of the method.
The method setValue(V) in the type Map.Entry is not applicable for the
arguments (String)	

javac does not complain here. it's a legit call to a raw object, i think.
Comment 1 Olivier Thomann CLA 2005-05-31 12:49:40 EDT
We missed a NestedType call in the grammar when consuming annotation type member
declarations.
Comment 2 Olivier Thomann CLA 2005-05-31 12:50:02 EDT
Sorry, wrong PR
Comment 3 Philipe Mulet CLA 2005-06-01 13:11:09 EDT
Raw conversion did not perform fine on interface member of a raw type when going
through QualifiedNameReference scenario.
Added GenericTypeTest#test705.
Comment 4 Philipe Mulet CLA 2005-06-01 13:11:31 EDT
Fixed
Comment 5 Frederic Fusier CLA 2005-06-07 11:07:39 EDT
Verified for 3.1 RC2 using build N20050607-0010 + JDT/Core HEAD
Comment 6 David Audel CLA 2005-06-10 12:07:32 EDT
Verified for 3.1 RC2 using build I20050610-0010