aspose file tools*
The moose likes Beginning Java and the fly likes @Deprecated annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "@Deprecated annotation" Watch "@Deprecated annotation" New topic
Author

@Deprecated annotation

Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

@Deprecated annotation

Why is this code not generating a deprecation warning ? If I replace the annotation with the old @deprecated javadoc, the compiler warns about a deprecated class being used.



(JDK1.5.0_07)

[ October 29, 2008: Message edited by: Christophe Verre ]
[ October 30, 2008: Message edited by: Christophe Verre ]

[My Blog]
All roads lead to JavaRanch
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14688
    
  16

Never mind, I tried with jdk1.6.0_10 and the warning is shown. I guess it was a kind of bug in Tiger.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @Deprecated annotation