[jboss-cvs] JBossAS SVN: r62762 - projects/aop/trunk/aop/src/main/org/jboss/aop.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed May 2 17:13:23 EDT 2007
Author: flavia.rainone at jboss.com
Date: 2007-05-02 17:13:23 -0400 (Wed, 02 May 2007)
New Revision: 62762
Modified:
projects/aop/trunk/aop/src/main/org/jboss/aop/AspectXmlLoader.java
Log:
Improved the format of no such advice error message.
Modified: projects/aop/trunk/aop/src/main/org/jboss/aop/AspectXmlLoader.java
===================================================================
--- projects/aop/trunk/aop/src/main/org/jboss/aop/AspectXmlLoader.java 2007-05-02 20:59:34 UTC (rev 62761)
+++ projects/aop/trunk/aop/src/main/org/jboss/aop/AspectXmlLoader.java 2007-05-02 21:13:23 UTC (rev 62762)
@@ -1,24 +1,24 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.aop;
import java.io.IOException;
@@ -385,15 +385,15 @@
catch (IllegalArgumentException e)
{
StringBuffer message = new StringBuffer();
- message.append("unexpected tag inside binding:");
+ message.append("unexpected tag inside binding: \'");
message.append(tag2);
- message.append("\n should be one of: \'interceptor\', \'interceptor-ref\', \'advice\', \'");
- for(AdviceType adviceType: AdviceType.values())
+ message.append("\'\n\t\t\t\t\t should be one of: \n\t\t\t\t\t\t'interceptor\', \n\t\t\t\t\t\t'interceptor-ref\', \n\t\t\t\t\t\t'advice\', \n\t\t\t\t\t\t'");
+ for (AdviceType adviceType : AdviceType.values())
{
message.append(adviceType.getDescription());
- message.append("\', \'");
+ message.append("\', \n\t\t\t\t\t\t'");
}
- message.append("stack-ref\'");
+ message.append("stack-ref\'.\n");
throw new RuntimeException(message.toString());
}
}
More information about the jboss-cvs-commits
mailing list