Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8021792

print function defined in engine.js does not handle multiple arguments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 8
    • 8
    • core-libs
    • None

      print function defined for shell tool ("jjs") in Global.java can handle multiple arguments:

      jjs> print(34, 44, 55)
      34 44 55

      But 'print' function defined in engine.js for javax.script API implementation (jrunscript tool) prints only the first argument:

      nashorn> print(34, 44, 55)
      34



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

              Created:
              Updated:
              Resolved: