Summary: | [5.0] 3.1M4 spurious type-safety compiler warning | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | mike andrews <mikea> |
Component: | Core | Assignee: | JDT-Core-Inbox <jdt-core-inbox> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 M5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
mike andrews
2004-12-23 22:43:53 EST
hmmmm.... still get the error without anonymous class now... but the following standalone class completely demonstrates the problem: indicated line generates compiler warning "Type safety: The return type String of the method call() of type Test needs unchecked conversion to conform to the return type V of inherited method": package test.a; import java.util.concurrent.Callable; class Test implements Callable<String> { public String call() throws Exception { // THIS LINE GENERATES WARNING return new String(""); } } |