Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6352136

TypeMirror.asElement().getEnclosedElements() throws NPE

XMLWordPrintable

    • b75
    • generic
    • generic
    • Verified

      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;
      }
      }

            ahe Peter Ahe
            ssides Steve Sides
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: