Community
Participate
Working Groups
The following code triggers a type warning in Eclipse 3.1M4. Neither Eclipse 3.1M3 nor javac emit a warning, nor should they. import java.util.concurrent.Callable; public class TypeWarningBug { public static void main(String[] args) throws Exception { Callable<Integer> integerCallable = new Callable<Integer>() { public Integer call() { return new Integer(1); } }; System.out.println(integerCallable.call()); } } Type safety: The return type Integer of the method call() of type new Callable<Integer>(){} needs unchecked conversion to conform to the return type V of inherited method To silence, disable "Unsafe type operation involving raw types" in JSK 5.0 compiler options.
Added MethodVerify test025
*** Bug 82511 has been marked as a duplicate of this bug. ***
*** Bug 79687 has been marked as a duplicate of this bug. ***
*** Bug 82932 has been marked as a duplicate of this bug. ***
*** Bug 83269 has been marked as a duplicate of this bug. ***
Verified in I20050215-2300