|
Relates :
|
|
|
Relates :
|
|
|
Relates :
|
Simple code below results in NullPointerException
static class typekindVisitor extends TypeKindVisitor6<Boolean, Void> {
public Boolean defaultAction(TypeMirror tm, Void v) {
List<? extends Element> le = tm.asElement().getEnclosedElements(); //<<--NPE
for(Element e : le ) e.asType().accept(new typekindVisitor(), null);
tm.accept( new typekindVisitor(), null);
return true;
}
}
|