Deprecate in Java 1.6
Posted
by iano
on Stack Overflow
See other posts from Stack Overflow
or by iano
Published on 2009-11-24T15:51:41Z
Indexed on
2010/04/26
19:23 UTC
Read the original article
Hit count: 129
In Java 1.5, to deprecate a method you would:
@Deprecated int foo(int bar) {
}
Compiling this in Java 1.6 results in the following:
Syntax error, annotations are only available if source level is 1.5
Any ideas?
© Stack Overflow or respective owner