myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r1333627 - /myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java
Date Thu, 03 May 2012 21:20:14 GMT
Author: bommel
Date: Thu May  3 21:20:13 2012
New Revision: 1333627

URL: http://svn.apache.org/viewvc?rev=1333627&view=rev
Log:
improved error handling

Modified:
    myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java

Modified: myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java?rev=1333627&r1=1333626&r2=1333627&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java
(original)
+++ myfaces/tobago/trunk/tobago-tool/tobago-tool-apt/src/main/java/org/apache/myfaces/tobago/apt/CreateComponentAnnotationVisitor.java
Thu May  3 21:20:13 2012
@@ -112,8 +112,14 @@ public class CreateComponentAnnotationVi
   public void process() {
     for (InterfaceDeclaration declaration : getCollectedInterfaceDeclarations()) {
       if (declaration.getAnnotation(UIComponentTag.class) != null) {
-        createRenderer(declaration);
-        createTagOrComponent(declaration);
+        try {
+          createRenderer(declaration);
+          createTagOrComponent(declaration);
+        } catch (IllegalArgumentException e) {
+          getEnv().getMessager().printError("Error during processing of "
+                  + declaration.getAnnotation(UIComponentTag.class).uiComponent());
+          throw e;
+        }
       }
     }
     for (ClassDeclaration declaration : getCollectedClassDeclarations()) {



Mime
View raw message