Bug 86646

Summary: [1.5] no warning for useless cast if type param used as cast-to type
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Adam Kiezun CLA 2005-02-25 11:08:09 EST
3.1M5a
public class Cell<T>{
  public T f1(T l){
	  Vector<T> v= new Vector<T>();
	  v.add(l);
	  return (T)v.get(0);  //Expect warning here
  }
}
Comment 1 Philipe Mulet CLA 2005-02-25 12:42:50 EST
Works fine in latest. Added GenericTypeTest#test531