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

JavaScript: can't use user specified scope in ScriptContext

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: core-libs
    • Subcomponent:
    • Introduced In Version:
      6
    • Resolved In Build:
      b79
    • CPU:
      generic
    • OS:
      generic

      Description

      javax.script.ScriptContext specifies ENGINE_SCOPE and GLOBAL_SCOPE. But, user should still be able to plugin his own ScriptContext implementation that allows more scopes for his application. But, the JavaScript engine in Mustang supports only the engine and the global scopes. Arbitrary scopes don't work as expected. Please find the test case (Test.java and MyContext.java) in attachments.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sundar Sundararajan Athijegannathan
                Reporter:
                sundar Sundararajan Athijegannathan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: