@SuppressWarnings("deprecation") does not not work correctly?

Jesse Glick jesse.glick at sun.com
Thu Aug 23 20:08:20 PDT 2007

Jan Lahoda wrote:
>     when I try to compile the following piece of code with 
> "-Xlint:deprecation", it produces
> /tmp/JavaApplication1/src/javaapplication1/Main.java:7: warning: 
> [deprecation] java.rmi.RMISecurityException in java.rmi has been deprecated
>         @SuppressWarnings("deprecation")
>         java.rmi.RMISecurityException ex;

I found and filed this some time ago:



jesse.glick at sun.com  netbeans.org  ant.apache.org  hudson.dev.java.net

More information about the compiler-dev mailing list