https://bz.apache.org/bugzilla/show_bug.cgi?id=62353
--- Comment #6 from Konstantin Kolinko <knst.koli...@gmail.com> --- (In reply to Konstantin Kolinko from comment #2) > (In reply to Konstantin Kolinko from comment #1) > > Comparing the classes in Java 6 and the classes in annotations-api.jar of > > Tomcat, a difference is that Tomcat has classes in the following package > > - javax.annotation.security > > > > The rest of differences are Common Annotations 1.0 vs 1.1. > > rt.jar of Java 6 has the following javax.annotation classes: > > Generated.class > PostConstruct.class > PreDestroy.class > Resource.class > Resource$AuthenticationType.class > Resources.class > > annotations-api.jar of Tomcat has the following additional classes and > packages: > > 1) in javax.annotation: ManagedBean.class > - @since Common Annotations 1.1 > > 2) package javax.annotation.security. > - I wonder why Java 6 is it. These classes are documented as @since Common > Annotations 1.0. > > 3) package javax.annotation.sql > - @since Common Annotations 1.1 Comparing Java 6 with Java 7 and 8: the missing classes (ManagedBean) and the two packages (security, sql) are missing in Java 7 and Java 8 as well. Java 6(.45)/7(.80)/8(.172) all have only the following classes: > Generated.class > PostConstruct.class > PreDestroy.class > Resource.class > Resource$AuthenticationType.class > Resources.class The rest of Commons Annotations 1.1 classes are missing. BTW, Commons Annotations 1.3 spec (latest), jsr-250.pdf: [quote] 1.3 Compatibility The annotations defined in this specification may be included individually as needed in products that make use of them. Other Java specifications will require support for subsets of these annotations. Products that support these Java specifications must include the required annotations. [/quote] That is why JRE only has a subset of the classes. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org