Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335810

Summary: Suppressing raw type warnings with AspectJ
Product: [Tools] AspectJ Reporter: Emond Papegaaij <emond.papegaaij>
Component: CompilerAssignee: aspectj inbox <aspectj-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: aclement, ian, wilkinsona
Version: unspecified   
Target Milestone: 1.6.12   
Hardware: PC   
OS: All   
Whiteboard:

Description Emond Papegaaij CLA 2011-01-31 02:35:10 EST
Build Identifier: 

Starting with Eclipse 3.6, the Eclipse compiler no longer suppresses raw type 
warnings with @SuppressWarnings("unchecked"). You need to use 
@SuppressWarnings("rawtypes") for that. Is it possible to change this in the 
AspectJ compiler as well?

At our company, we have several libraries shared between projects. Some of 
these projects use AspectJ, where others are still plain Java to compile these 
libraries. The current behavior makes it impossible to suppress raw type 
warnings in both compilers: with 'unchecked', Eclipse 3.6 will complain about 
raw types and with 'rawtypes', AJDT complains about an unknown 
SuppressWarnings token.

Reproducible: Always
Comment 1 Andrew Clement CLA 2011-04-27 20:06:02 EDT
Fixed!  I ported the 3.6 behaviour back into AspectJ.  Now rawtypes works as expected.  This will be in AJDT tomorrow and is in a 1.6.12.BUILD-SNAPSHOT I pushed out to the test repo (maven.springframework.org).
Comment 2 Andy Wilkinson CLA 2011-05-03 10:57:17 EDT
Thanks, Andy. Just upgraded to the latest AJDT build on the update site and a tonne of warnings have now disappeared.