Created attachment 35026 [details] Patch validated against tomcat tests and the corresponding specification According to https://docs.oracle.com/javaee/7/api/javax/annotation/package-summary.html and https://docs.oracle.com/javaee/7/api/javax/annotation/security/package-summary.html the following classes should have @Documented annotation: javax.annotation.Generated javax.annotation.PostConstruct javax.annotation.PreDestroy javax.annotation.Priority javax.annotation.Resources javax.annotation.security.DeclareRoles javax.annotation.security.DenyAll javax.annotation.security.PermitAll javax.annotation.security.RolesAllowed javax.annotation.security.RunAs
Confirmed. This also needs back-porting to 8.x and 7.x (less Priority which was introduced in Java EE 7). Working on this now...
Thanks for spotting this and thanks for the patch. This has been fixed in: - trunk for 9.0.0.M22 onwards - 8.5.x for 8.5.16 onwards - 8.0.x for 8.0.45 onwards - 7.0.x for 7.0.79 onwards