Community
Participate
Working Groups
AJDT is ignoring the @SuppressWarnings( "unchecked" ) annotation. It is giving me a type safety warning when I don't specify the type when declaring a generic even though I have the @SuppressWarnings( "unchecked" ) annotation specified.
Passing over to compiler
We should just be picking up this functionality from the underlying JDT compiler. I'll check it out as part of the M3 release...
Fixed by upgrade to latest JDT compiler level. This program: import java.util.*; public class pr104529 { void unsuppressed() { List<String> l = new ArrayList(); } @SuppressWarnings("unchecked") void suppressed() { List<Double> l = new ArrayList(); } } compiled with: ajc -1.5 -warn:+unchecked pr104529.aj gives an unchecked error for the assignment in unsuppressed() and not for the assignment in suppressed()