Possible Duplicate:
Cannot stop ant from generating compiler warnings
How to suppress this warning:
sun.reflect.Reflection is Sun proprietary API and may be removed in a future release
using @SuppressWarnings in Oracles javac (1.6)?
According to this blog using "all"
should work but it does not. Does anybody know the correct string?
Try adding the
-XDignore.symbol.file
option to the javac command line
hope this helps
EDIT REF : OPENJDK
EXAMPLE 6
To compile your source you can either use the javac from JDK7 with -source 1.6 -target 1.6, or run the javac from your patched JDK6 with -XDignore.symbol.file=true. This flag is necessary because javac uses a symbol file to determine packages in the com/sun namespace and will not recognize the new sctp classes as they are not in this symbol file.