langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/Attr.java
changeset 32912 dd06b5fd9300
parent 32709 55d136799f79
child 32950 22315d47485b
equal deleted inserted replaced
32911:6ee3c12d2d18 32912:dd06b5fd9300
  2213                     || (tree.clazz.type != null && inferenceContext.free(tree.clazz.type)))) {
  2213                     || (tree.clazz.type != null && inferenceContext.free(tree.clazz.type)))) {
  2214                 final ResultInfo resultInfoForClassDefinition = this.resultInfo;
  2214                 final ResultInfo resultInfoForClassDefinition = this.resultInfo;
  2215                 inferenceContext.addFreeTypeListener(List.of(tree.constructorType, tree.clazz.type),
  2215                 inferenceContext.addFreeTypeListener(List.of(tree.constructorType, tree.clazz.type),
  2216                         instantiatedContext -> {
  2216                         instantiatedContext -> {
  2217                             tree.constructorType = instantiatedContext.asInstType(tree.constructorType);
  2217                             tree.constructorType = instantiatedContext.asInstType(tree.constructorType);
  2218                             clazz.type = instantiatedContext.asInstType(clazz.type);
  2218                             tree.clazz.type = clazz.type = instantiatedContext.asInstType(clazz.type);
  2219                             ResultInfo prevResult = this.resultInfo;
  2219                             ResultInfo prevResult = this.resultInfo;
  2220                             try {
  2220                             try {
  2221                                 this.resultInfo = resultInfoForClassDefinition;
  2221                                 this.resultInfo = resultInfoForClassDefinition;
  2222                                 visitAnonymousClassDefinition(tree, clazz, clazz.type, cdef,
  2222                                 visitAnonymousClassDefinition(tree, clazz, clazz.type, cdef,
  2223                                                             localEnv, argtypes, typeargtypes, pkind);
  2223                                                             localEnv, argtypes, typeargtypes, pkind);