< prev index next >

## src/jdk.scripting.nashorn/share/classes/jdk/nashorn/tools/Shell.java

Print this page

    @@ -168,10 +168,13 @@
                 return COMMANDLINE_ERROR;
             }

             final Global global = context.createGlobal();
             final ScriptEnvironment env = context.getEnv();
    +        if (!env._no_deprecation_warning) {
    +            System.err.println("Warning: The jjs tool is planned to be removed from a future JDK release");
    +        }
             final List<String> files = env.getFiles();
             if (files.isEmpty()) {
                 return readEvalPrint(context, global);
             }

< prev index next >