Community
Participate
Working Groups
Using 3.1 RC1. Here's following code snippet: import java.util.ArrayList; import java.util.List; @SuppressWarnings("unchecked") public class Test { List<String> ls = new ArrayList(); } There's no compiler warning neither in editor nor in problems view. However, looking at ASTView, I see 1 compiler problem: "Type safety: The expression of type ArrayList needs unchecked conversion..." I would expect same result than in editor, ie. no compiler error.
Note that seems to be the case whatever token is used ("boxing", "unusedLocal", "unusedPrivate", etc.).
+1 for RC2
I believe the filtering of warnings is done too late. I am investigating.
Cannot reproduce. I will release regression test org.eclipse.jdt.core.tests.dom.ASTConverter15Test.test0185. Let me know if you find anything wrong with my test. Commenting out the @SuppressWarnings line reports a warning as expected.
Only happens if the reconcile mode is not used.
Fixed and released in HEAD. Regression test added in ASTConverter15Test.test0185/0186.
Verified for 3.1 RC2 using build N20050607-0010 + JDT/Core HEAD
Verified for 3.1 RC2 using build I20050610-0010