--- old/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/SimpleTreeVisitorES5_1.java 2018-06-27 09:02:36.000000000 +0530 +++ new/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/api/tree/SimpleTreeVisitorES5_1.java 2018-06-27 09:02:35.000000000 +0530 @@ -40,12 +40,16 @@ * subclasses with {@link java.lang.Override @Override} will help * ensure that methods are overridden as intended. * + * @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 * methods. Use {@code Void} for visitors that do not need an * additional parameter. */ +@Deprecated(since="11", forRemoval=true) public class SimpleTreeVisitorES5_1 implements TreeVisitor { @Override public R visitAssignment(final AssignmentTree node, final P r) {