[JSR308] Annotations in comments
mernst at csail.mit.edu
Tue Oct 28 09:37:04 EDT 2008
> Also, regarding the annotations in comments. On the website, it is specified
> that "This temporary mechanism will not be part of the official Java
> language when JSR 308 is incorporated into it. It may or may not continue to
> be supported by the javac compiler." Is this the official position of Sun?
Sun doesn't have an official position on this, so far as I know.
> ask because I am working on a project where it would be really useful if the
> feature will be included directly in the compiler - and not to write a
> separate Java source code checker for annotations in comments....
If you need a compiler that supports commented annotations, and if Sun's
javac doesn't support them, then you could make a small patch to the
OpenJDK that supports the commented annotations.
More information about the JSR308