dev@glassfish.java.net

Re: incorrect _at_Generated signature

From: Rajiv Mordani <Rajiv.Mordani_at_Sun.COM>
Date: Thu, 11 May 2006 15:22:25 -0700

Hi Wonseok,
This is a typo in the spec. What the CTS and the API have are correct.
We are working to update
the typo in the spec.

Thanks

- Rajiv

Wonseok Kim wrote:
> During I'm running CTS signature test, I found JSR250 @Generated
> annotation has different signature.
>
> Spec says it has comment() method.
>
> package javax.annotation;
> import static java.lang.annotation.ElementType.*;
> import static java.lang.annotation.RetentionPolicy.*;
> @Target({ANNOTATION_TYPE, CONSTRUCTOR, FIELD, LOCAL_VARIABLE, METHOD,
> PACKAGE, PARAMETER, TYPE})
> @Retention(SOURCE)
> public @interface Generated {
> String[] value();
> String date() default ¡°¡°;
> *comment() default ¡°¡°;*
> }
>
> But implemented api has comments() method instead of above.
> GlassFish and Mustang has same problem.
>
> And the CTS signature test also compare it with invalid comments() method.
>
> Cheers,
>
> --
> Wonseok Kim
> Senior Researcher/Developer
> WAS Department
> Tmax Soft R&D Center
>