src/share/classes/com/sun/tools/javac/comp/Attr.java

changeset 1919
3155e77d2676
parent 1914
0a9f5cbe37d9
child 1924
cd9e8cea1b3c
equal deleted inserted replaced
1918:a218f7befd55 1919:3155e77d2676
2968 if (checkContext.deferredAttrContext().mode == DeferredAttr.AttrMode.CHECK && 2968 if (checkContext.deferredAttrContext().mode == DeferredAttr.AttrMode.CHECK &&
2969 pt != Type.recoveryType) { 2969 pt != Type.recoveryType) {
2970 //check that functional interface class is well-formed 2970 //check that functional interface class is well-formed
2971 ClassSymbol csym = types.makeFunctionalInterfaceClass(env, 2971 ClassSymbol csym = types.makeFunctionalInterfaceClass(env,
2972 names.empty, List.of(fExpr.targets.head), ABSTRACT); 2972 names.empty, List.of(fExpr.targets.head), ABSTRACT);
2973 chk.checkImplementations(env.tree, csym, csym); 2973 if (csym != null) {
2974 chk.checkImplementations(env.tree, csym, csym);
2975 }
2974 } 2976 }
2975 } 2977 }
2976 } 2978 }
2977 2979
2978 public void visitParens(JCParens tree) { 2980 public void visitParens(JCParens tree) {

mercurial