Bug 97480

Summary: [1.5][compiler] incorrect error on some calls to raw Map.Entry.setValue
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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