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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 8
    • 8
    • core-libs
    • None

    Description

      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



      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: