22 */ |
22 */ |
23 |
23 |
24 |
24 |
25 /* |
25 /* |
26 * @test |
26 * @test |
27 * @bug 6639645 7026414 |
27 * @bug 6639645 7026414 7025809 |
28 * @summary Modeling type implementing missing interfaces |
28 * @summary Modeling type implementing missing interfaces |
29 * @library ../../../../lib |
29 * @library ../../../../lib |
30 * @build JavacTestingAbstractProcessor TestMissingElement |
30 * @build JavacTestingAbstractProcessor TestMissingElement |
31 * @compile -proc:only -XprintRounds -processor TestMissingElement InvalidSource.java |
31 * @compile -proc:only -XprintRounds -processor TestMissingElement InvalidSource.java |
32 */ |
32 */ |
102 } |
102 } |
103 |
103 |
104 private String asString(TypeMirror t) { |
104 private String asString(TypeMirror t) { |
105 if (t == null) |
105 if (t == null) |
106 return "[typ:null]"; |
106 return "[typ:null]"; |
107 return t.accept(new SimpleTypeVisitor7<String, Void>() { |
107 return t.accept(new SimpleTypeVisitor<String, Void>() { |
108 @Override |
108 @Override |
109 public String defaultAction(TypeMirror t, Void ignore) { |
109 public String defaultAction(TypeMirror t, Void ignore) { |
110 return "[typ:" + t.toString() + "]"; |
110 return "[typ:" + t.toString() + "]"; |
111 } |
111 } |
112 |
112 |
133 } |
133 } |
134 |
134 |
135 private String asString(Element e) { |
135 private String asString(Element e) { |
136 if (e == null) |
136 if (e == null) |
137 return "[elt:null]"; |
137 return "[elt:null]"; |
138 return e.accept(new SimpleElementVisitor7<String, Void>() { |
138 return e.accept(new SimpleElementVisitor<String, Void>() { |
139 @Override |
139 @Override |
140 public String defaultAction(Element e, Void ignore) { |
140 public String defaultAction(Element e, Void ignore) { |
141 return "[elt:" + e.getKind() + " " + e.toString() + "]"; |
141 return "[elt:" + e.getKind() + " " + e.toString() + "]"; |
142 } |
142 } |
143 @Override |
143 @Override |