--- old/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/DiagnosticListener.java 2018-06-27 09:01:56.000000000 +0530 +++ new/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/DiagnosticListener.java 2018-06-27 09:01:56.000000000 +0530 @@ -28,8 +28,12 @@ /** * Interface for receiving diagnostics from Nashorn parser. * + * @deprecated Nashorn JavaScript script engine and APIs, and the jjs tool + * are deprecated with the intent to remove them in a future release. + * * @since 9 */ +@Deprecated(since="11", forRemoval=true) @FunctionalInterface public interface DiagnosticListener { /**