[seam-commits] Seam SVN: r9708 - trunk/src/main/org/jboss/seam/deployment.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Dec 3 19:19:27 EST 2008


Author: dan.j.allen
Date: 2008-12-03 19:19:27 -0500 (Wed, 03 Dec 2008)
New Revision: 9708

Modified:
   trunk/src/main/org/jboss/seam/deployment/ClassDescriptor.java
Log:
JBSEAM-3757

Modified: trunk/src/main/org/jboss/seam/deployment/ClassDescriptor.java
===================================================================
--- trunk/src/main/org/jboss/seam/deployment/ClassDescriptor.java	2008-12-04 00:19:01 UTC (rev 9707)
+++ trunk/src/main/org/jboss/seam/deployment/ClassDescriptor.java	2008-12-04 00:19:27 UTC (rev 9708)
@@ -35,6 +35,18 @@
       {
          log.debug("could not load class (missing dependency): " + classname, ncdfe);
       }
+      
+      try
+      {
+         // IBM JVM will fail if an annotation used on the type is not on the classpath
+         // rendering the class virtually unusable (given Seam's heavy use of annotations)
+         clazz.getAnnotations();
+      }
+      catch (TypeNotPresentException tnpe)
+      {
+         clazz = null;
+         log.debug("could not load class (annotation missing dependency): " + classname, tnpe);
+      }
    }
 
    public Class<?> getClazz()




More information about the seam-commits mailing list