Bug 86646 - [1.5] no warning for useless cast if type param used as cast-to type
Summary: [1.5] no warning for useless cast if type param used as cast-to type
Status: RESOLVED WORKSFORME
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 M6   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-25 11:08 EST by Adam Kiezun CLA
Modified: 2005-02-25 12:42 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-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