I have a problem with @SuppressWarnings annotation when handling raw type alerts in Eclipse Helios.
According to this post and docs, the rawtypes annotation rawtypes should be used instead of the old unchecked in Eclipse Helios. However, when I use the rawtypes annotation, I get the following warning:
Unhandled warning token rawtypes
Even when performing a quick fix on a raw type, Eclipse offers me to use rawtypes . However, I found that the old unchecked option still works on my version of Helios, and rawtypes nโt, which doesn't match the docs.
So, basically I already "solved" this problem, but the real question is why rawtypes does not work?
My Eclipse setup:
Version: Helios Service Release 2 Build id: 20110301-1815
Project setup:
Java Build Path > JRE System Library: jdk1.6.0_24 Java Compiler > JDK Compliance: 1.6 Java Compiler > Generated .class files compatibility: 1.6 Java Compiler > Source compatibility: 1.6
From eclipse.ini :
-vm c:/Program Files/Java/jdk1.6.0_24/bin -vmargs -Dosgi.requiredJavaVersion=1.6 -Xms40m -Xmx512m
System:
Windows 7 Professional Service Pack 1
Any help or explanation would be greatly appreciated, thanks!
source share