Created attachment 31702 [details] org.apache.catalina.core.DefaultInstanceManager Just call method.getAnnotation(EJB.class) once, since isAnnotationPresent is also implmented by calling getAnnotation. java.lang.reflect.AccessibleObject: public boolean isAnnotationPresent( Class<? extends Annotation> annotationClass) { return getAnnotation(annotationClass) != null; }
Thanks for the patch. It has been applied )with slight tweaks for formatting) to 8.0.x for 8.0.9 onwards and to 7.0.x for 7.0./55 onwards. I also fixed all the additional instances of the same problem elsewhere in the code base.
I fixed several other usages of isAnnotationPresent() method, missed by Mark. It will be in 8.0.10, 7.0.55 onwards.