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) { |