dev@glassfish.java.net

Re: javadoc and annotations

From: Lloyd Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Tue, 12 May 2009 16:23:42 -0700

Thanks!

I did this once, just couldn't remember what I did.

Strange that javadoc docs don't mention it...

On May 12, 2009, at 11:35 AM, Bill Shannon wrote:

> Lloyd Chambers wrote:
>> Does anyone know if there is a way of getting the javadoc tool to
>> emit documentation on annotations?
>> I've read the docs and as far as I can tell, javadoc blindly
>> ignores all annotations.
>> For example, I'd like the @Taxonomy annotation to be included in
>> the javadoc as a key part of the documentation.
>> @Taxonomy(stability = Stability.COMMITTED)
>> public interface AMX_SPI {
>> ...
>> }
>
> I think you have to annotate the annotation with @Documented.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>

Lloyd Chambers
lloyd.chambers_at_sun.com
GlassFish Team