[jboss-cvs] JBossAS SVN: r64463 - projects/aop/trunk/aop/src/main/org/jboss/aop.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Aug 6 07:39:36 EDT 2007
Author: stalep
Date: 2007-08-06 07:39:36 -0400 (Mon, 06 Aug 2007)
New Revision: 64463
Modified:
projects/aop/trunk/aop/src/main/org/jboss/aop/AspectXmlLoader.java
Log:
A simple check that an aspect is found in the xml.
Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/AspectXmlLoader.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/AspectXmlLoader.java 2007-08-06 10:11:51 UTC (rev 64462)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/AspectXmlLoader.java 2007-08-06 11:39:36 UTC (rev 64463)
@@ -225,6 +225,8 @@
{
String name = element.getAttribute("name");
String aspect = element.getAttribute("aspect");
+ if(aspect == null || aspect.length() < 1)
+ throw new RuntimeException("Aspect couldnt be found for element: "+element.getNodeName()+", typo perhaps?");
AspectDefinition def = manager.getAspectDefinition(aspect);
if (def == null) throw new RuntimeException("advice " + name + " cannot find aspect " + aspect);
More information about the jboss-cvs-commits
mailing list