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

NPE for method javax.script.ScriptEngine.setContext() not specified and not thrown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 6
    • core-libs
    • None
    • b53
    • generic
    • generic

      NPE not specified for javax.script.ScriptEngine.setContext(ScriptContext ctxt) and it is not thrown by realized javax.script.AbstractScriptEngine.setContext(ScriptContext ctxt).

      The protected context field of ScriptEngine cannot be null in any case, if it will be null, NPE actually will be thrown by calling any of eval() methods with valid parameters.

      So, NPE throwing should be specified for setContext(ScriptContext ctxt) method of javax.script.ScriptEngine interface and should be realized in javax.script.AbstractScriptEngine.setContext(ScriptContext ctxt).

            sundar Sundararajan Athijegannathan
            vsmelovsunw Vladimir Smelov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: