@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:

http://bugs.sun.com/view_bug.do?bug_id=6460147

-J.

-- 
jesse.glick at sun.com  netbeans.org  ant.apache.org  hudson.dev.java.net
             http://google.com/search?q=e%5E%28pi*i%29%2B1




More information about the compiler-dev mailing list