--- old/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/TreeVisitor.java 2018-06-27 09:02:50.000000000 +0530 +++ new/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/TreeVisitor.java 2018-06-27 09:02:50.000000000 +0530 @@ -45,6 +45,9 @@ default method bodies will be introduced which will call visitUnknown method as a fallback. * + * @deprecated Nashorn JavaScript script engine and APIs, and the jjs tool + * are deprecated with the intent to remove them in a future release. + * * @param the return type of this visitor's methods. Use {@link * Void} for visitors that do not need to return results. * @param

the type of the additional parameter to this visitor's @@ -53,6 +56,7 @@ * * @since 9 */ +@Deprecated(since="11", forRemoval=true) public interface TreeVisitor { /** * Visit assignment tree.