diff -r ffa644980dff -r f854b76b6a0c test/langtools/tools/javac/diags/examples/NotAnInterfaceComponent.java --- a/test/langtools/tools/javac/diags/examples/NotAnInterfaceComponent.java Fri May 18 14:51:06 2018 +0200 +++ b/test/langtools/tools/javac/diags/examples/NotAnInterfaceComponent.java Fri May 18 09:22:31 2018 -0700 @@ -21,9 +21,9 @@ * questions. */ +// key: compiler.misc.not.a.functional.intf.1 // key: compiler.err.prob.found.req -// key: compiler.misc.bad.intersection.target.for.functional.expr -// key: compiler.misc.not.an.intf.component +// key: compiler.misc.incompatible.abstracts class NotAnInterfaceComponent { Object o = (String & Runnable) ()-> { };