Annotation bug fixed in next JDK 5.0 release

Posted by    |      

I found a posting from Emmanuel with the following link to the JDK bug tracking system .

Let's say you annotated a class with Hibernate Annotations and made it an EJB 3.0 @Entity bean. Let's also assume that you wrote your own annotations, for whatever metadata you might need in your system. If you now try to discover your annotations through Reflection, you will also need the EJB 3.0 interfaces in your classpath, even if you don't access the EJB 3.0 annotations.

It looks like this was fixed and will soon be included in a JDK update release.

Back to top