Merge of the processor fix into fx branch, so the TwitterClient class can find TwitterModel fx
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 17 Apr 2013 13:46:06 +0200
branchfx
changeset 1003bf8b1d7d76e0
parent 998 85cf9a12d503
parent 1001 748dc75f709a
child 1004 04efef2a9c1e
Merge of the processor fix into fx branch, so the TwitterClient class can find TwitterModel
javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/PageProcessor.java
     1.1 --- a/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/PageProcessor.java	Tue Apr 16 15:25:58 2013 +0200
     1.2 +++ b/javaquery/api/src/main/java/org/apidesign/bck2brwsr/htmlpage/PageProcessor.java	Wed Apr 17 13:46:06 2013 +0200
     1.3 @@ -23,6 +23,7 @@
     1.4  import java.io.StringWriter;
     1.5  import java.io.Writer;
     1.6  import java.lang.annotation.AnnotationTypeMismatchException;
     1.7 +import java.lang.annotation.IncompleteAnnotationException;
     1.8  import java.lang.reflect.Method;
     1.9  import java.util.ArrayList;
    1.10  import java.util.Collection;
    1.11 @@ -1338,7 +1339,7 @@
    1.12          String typeName(ProcessingEnvironment env) {
    1.13              try {
    1.14                  return p.type().getName();
    1.15 -            } catch (AnnotationTypeMismatchException ex) {
    1.16 +            } catch (IncompleteAnnotationException | AnnotationTypeMismatchException ex) {
    1.17                  for (Object v : getAnnoValues(env)) {
    1.18                      String s = v.toString().replace(" ", "");
    1.19                      if (s.startsWith("type=") && s.endsWith(".class")) {