[jboss-cvs] JBossAS SVN: r77555 - trunk/server/src/main/org/jboss/deployment.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Aug 27 20:56:57 EDT 2008
Author: scott.stark at jboss.org
Date: 2008-08-27 20:56:57 -0400 (Wed, 27 Aug 2008)
New Revision: 77555
Modified:
trunk/server/src/main/org/jboss/deployment/OptAnnotationMetaDataDeployer.java
Log:
JBAS-5895, workaround deployment failure by ignore exceptions thrown when trying to access the element owner.
Modified: trunk/server/src/main/org/jboss/deployment/OptAnnotationMetaDataDeployer.java
===================================================================
--- trunk/server/src/main/org/jboss/deployment/OptAnnotationMetaDataDeployer.java 2008-08-27 23:26:00 UTC (rev 77554)
+++ trunk/server/src/main/org/jboss/deployment/OptAnnotationMetaDataDeployer.java 2008-08-28 00:56:57 UTC (rev 77555)
@@ -167,7 +167,17 @@
Class<Annotation> annotationClass = (Class<Annotation>)annotation;
Set<Element<Annotation, Class<?>>> elements = env.classIsAnnotatedWith(annotationClass);
for(Element<Annotation, Class<?>> elt : elements)
- classes.add(elt.getOwner());
+ {
+ try
+ {
+ // TODO: JBAS-5895 why should this annotation even be seen?
+ classes.add(elt.getOwner());
+ }
+ catch(Exception e)
+ {
+ log.debug("Failed to load class for: "+elt, e);
+ }
+ }
}
Collection<Class<? extends Annotation>> methodAnnotations = context.getMethodAnnotations();
More information about the jboss-cvs-commits
mailing list