[jboss-cvs] JBossAS SVN: r80583 - projects/jpa/trunk/deployers/src/main/java/org/jboss/jpa/deployers.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Nov 6 06:01:27 EST 2008


Author: alesj
Date: 2008-11-06 06:01:27 -0500 (Thu, 06 Nov 2008)
New Revision: 80583

Modified:
   projects/jpa/trunk/deployers/src/main/java/org/jboss/jpa/deployers/PersistenceUnitDeployer.java
Log:
Add unit info, in case of null parent.

Modified: projects/jpa/trunk/deployers/src/main/java/org/jboss/jpa/deployers/PersistenceUnitDeployer.java
===================================================================
--- projects/jpa/trunk/deployers/src/main/java/org/jboss/jpa/deployers/PersistenceUnitDeployer.java	2008-11-06 10:48:49 UTC (rev 80582)
+++ projects/jpa/trunk/deployers/src/main/java/org/jboss/jpa/deployers/PersistenceUnitDeployer.java	2008-11-06 11:01:27 UTC (rev 80583)
@@ -107,7 +107,7 @@
 
          DeploymentUnit parent = unit.getParent();
          if (parent == null)
-            throw new IllegalArgumentException("Parent unit should not be null as this unit should be component.");
+            throw new IllegalArgumentException("Parent unit should not be null as this unit should be component: " + unit);
 
          parent.addAttachment(BeanMetaData.class.getName() + "." + name, builder.getBeanMetaData(), BeanMetaData.class);
       }




More information about the jboss-cvs-commits mailing list