[jboss-cvs] JBossAS SVN: r105414 - projects/weld-int/branches/Deployment_WELDINT-1/deployer/src/main/java/org/jboss/weld/integration/deployer/env/bda.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon May 31 11:02:24 EDT 2010


Author: flavia.rainone at jboss.com
Date: 2010-05-31 11:02:23 -0400 (Mon, 31 May 2010)
New Revision: 105414

Modified:
   projects/weld-int/branches/Deployment_WELDINT-1/deployer/src/main/java/org/jboss/weld/integration/deployer/env/bda/DeploymentImpl.java
Log:
[WELDINT-1] Deployment.loadBeanDeploymentArchive throws IllegalArgumentException when the class in not in the deployment's classpath.

Modified: projects/weld-int/branches/Deployment_WELDINT-1/deployer/src/main/java/org/jboss/weld/integration/deployer/env/bda/DeploymentImpl.java
===================================================================
--- projects/weld-int/branches/Deployment_WELDINT-1/deployer/src/main/java/org/jboss/weld/integration/deployer/env/bda/DeploymentImpl.java	2010-05-31 14:16:23 UTC (rev 105413)
+++ projects/weld-int/branches/Deployment_WELDINT-1/deployer/src/main/java/org/jboss/weld/integration/deployer/env/bda/DeploymentImpl.java	2010-05-31 15:02:23 UTC (rev 105414)
@@ -137,6 +137,6 @@
             }
          }
       }
-      return null;
+      throw new IllegalArgumentException("Bean class " + beanClass + " is not in " + this + " classpath");
    }
 }




More information about the jboss-cvs-commits mailing list