langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java
changeset 21716 fdb441b50289
parent 21712 d363f367d4c0
child 21718 74a5882faf79
equal deleted inserted replaced
21715:f4afc37a97a2 21716:fdb441b50289
  4600                     JCTypeIntersection it = (JCTypeIntersection) enclTr;
  4600                     JCTypeIntersection it = (JCTypeIntersection) enclTr;
  4601                     for (JCTree t : it.getBounds()) {
  4601                     for (JCTree t : it.getBounds()) {
  4602                         validateAnnotatedType(t, t.type);
  4602                         validateAnnotatedType(t, t.type);
  4603                     }
  4603                     }
  4604                     repeat = false;
  4604                     repeat = false;
  4605                 } else if (enclTr.getKind() == JCTree.Kind.PRIMITIVE_TYPE) {
  4605                 } else if (enclTr.getKind() == JCTree.Kind.PRIMITIVE_TYPE ||
  4606                     // This happens in test TargetTypeTest52.java
  4606                            enclTr.getKind() == JCTree.Kind.ERRONEOUS) {
  4607                     // Is there anything to do?
       
  4608                     repeat = false;
  4607                     repeat = false;
  4609                 } else {
  4608                 } else {
  4610                     Assert.error("Unexpected tree: " + enclTr + " with kind: " + enclTr.getKind() +
  4609                     Assert.error("Unexpected tree: " + enclTr + " with kind: " + enclTr.getKind() +
  4611                             " within: "+ errtree + " with kind: " + errtree.getKind());
  4610                             " within: "+ errtree + " with kind: " + errtree.getKind());
  4612                 }
  4611                 }