Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9430

Added support for ScriptEngine.FILENAME behaviour

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1, 3.0.2
    • None
    • None

    Description

      https://github.com/apache/groovy/pull/1178

      Based on documentation :
      https://docs.oracle.com/en/java/javase/11/docs/api/java.scripting/javax/script/ScriptEngine.html#FILENAME
      and Nashorn behaviour, setting in the bindings a String value with ScriptEngine.FILENAME as key should affect the filename used for the script.

      This patch implements the behaviour.

      Attachments

        Activity

          People

            daniel_sun Daniel Sun
            daniel_sun Daniel Sun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: