< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTrees.java

Print this page
*** 1142,11 ***
          }
          if (errorType instanceof com.sun.tools.javac.code.Type.ClassType classType &&
              errorType.getKind() == TypeKind.ERROR) {
              return extraType2OriginalMap.computeIfAbsent(classType, tt ->
                      new ClassType(classType.getEnclosingType(), classType.typarams_field,
!                             classType.tsym, classType.getMetadata()) {
                          @Override
                          public Type baseType() { return classType; }
                          @Override
                          public TypeKind getKind() {
                              return TypeKind.DECLARED;
--- 1142,11 ---
          }
          if (errorType instanceof com.sun.tools.javac.code.Type.ClassType classType &&
              errorType.getKind() == TypeKind.ERROR) {
              return extraType2OriginalMap.computeIfAbsent(classType, tt ->
                      new ClassType(classType.getEnclosingType(), classType.typarams_field,
!                                   classType.tsym, classType.getMetadata(), classType.getFlavor()) {
                          @Override
                          public Type baseType() { return classType; }
                          @Override
                          public TypeKind getKind() {
                              return TypeKind.DECLARED;
< prev index next >