--- old/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ScriptEnvironment.java 2018-06-27 09:03:03.000000000 +0530 +++ new/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ScriptEnvironment.java 2018-06-27 09:03:02.000000000 +0530 @@ -108,6 +108,8 @@ /** Enable experimental ECMAScript 6 features. */ public final boolean _es6; + /** do not show deprecation warning for nashorn engine and jjs usage. */ + public final boolean _no_deprecation_warning; /** Number of times a dynamic call site has to be relinked before it is * considered unstable (and thus should be linked as if it were megamorphic). @@ -306,6 +308,7 @@ _strict = options.getBoolean("strict"); _version = options.getBoolean("version"); _verify_code = options.getBoolean("verify.code"); + _no_deprecation_warning = options.getBoolean("no.deprecation.warning"); final int configuredUrt = options.getInteger("unstable.relink.threshold"); // The default for this property is -1, so we can easily detect when