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

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Dec 3 22:14:42 EST 2008


Author: dan.j.allen
Date: 2008-12-03 22:14:42 -0500 (Wed, 03 Dec 2008)
New Revision: 9710

Modified:
   trunk/src/main/org/jboss/seam/deployment/ClassDescriptor.java
Log:
JBSEAM-3757 - oops, conditions weren't quite right

Modified: trunk/src/main/org/jboss/seam/deployment/ClassDescriptor.java
===================================================================
--- trunk/src/main/org/jboss/seam/deployment/ClassDescriptor.java	2008-12-04 01:31:39 UTC (rev 9709)
+++ trunk/src/main/org/jboss/seam/deployment/ClassDescriptor.java	2008-12-04 03:14:42 UTC (rev 9710)
@@ -26,6 +26,9 @@
       try 
       {
          clazz = classLoader.loadClass(classname);
+         // IBM JVM will throw a TypeNotPresentException if any annotation on the class is not on
+         // the classpath, rendering the class virtually unusable (given Seam's heavy use of annotations)
+         clazz.getAnnotations();
       }
       catch (ClassNotFoundException cnfe) 
       {
@@ -35,13 +38,6 @@
       {
          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;




More information about the seam-commits mailing list