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

Methods javax.script.ScriptEngineManager throw unspecified exceptions

XMLWordPrintable

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

      All getEngineBy* methods of javax.script.ScriptEngineManager throw NullPointerException if null parameter is given. In fact, spec says that all methods getEngineBy* return null if no such factory was found and NullPointerException is not mentioned at all. It would good to clarify methods behavior in case of null parameter passed.

      ###@###.### 2005-06-28 03:31:40 GMT

      Method javax.script.ScriptEngineManager.setBindings(Bindings bindings) throws IllegalArgumentException if bindings is null. This is also not specified.
      ###@###.### 2005-06-29 01:50:29 GMT

      Method java.script.ScriptEngineManager.put(String key, Object value) throws IllegalArgumentExcpetion if key is empty string. This is also not specified.
      ###@###.### 2005-06-29 02:28:32 GMT

      Methods java.script.ScriptEngineManager.registerEngine* throw NullPointerException is one of the passed parameters is null. This is also not specified.
      ###@###.### 2005-06-29 02:42:02 GMT

            sundar Sundararajan Athijegannathan
            agavrilosunw Alexey Gavrilov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: