This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 14687
    
  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: 14687
    
  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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: @Deprecated annotation
 
Similar Threads
SCBCD
Content removed
Passed SCBCD 5 With 95%
exam question
SCWCD 5 , Mock exams please !!!