dev@glassfish.java.net

javax.annotation.Resource has incorrect member

From: Wonseok Kim <guruwons_at_tmax.co.kr>
Date: Fri, 16 Dec 2005 16:33:50 +0900

Glassfish has incorrect @javax.annotation.Resource annotation class.

Resource.authentication() member should be
*Resource.authenticationType()* according to JSR-250 PFD spec.

JSR250 PFD says:

public @interface Resource {
public enum AuthenticationType {
CONTAINER,
APPLICATION
}
String name() default ¡°¡°;
Class type() default Object.class;
AuthenticationType authenticationType() default
AuthenticationType.CONTAINER;
boolean shareable() default true;
String description() default ¡°¡°;
}