• Icon: Sub-task Sub-task
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      import java.io.*;
      import java.util.*;
      import javax.script.*;

      public class Jtest3{

          public static void main(String[] args){
              ScriptEngineManager factory = new ScriptEngineManager();
              ScriptEngine js = factory.getEngineByName("JavaScript");
              Object obj = js.get("toString");
              System.out.printf("%s\n",obj);
          }

      /*

      output rhino:
      null

      output nashorn:
      function toString() { [native code] }

      */

      }

            sundar Sundararajan Athijegannathan
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: