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

repeated @throws clauses in javax.script API

XMLWordPrintable

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

      1) There are duplicated exceptions in the javadoc throws list:

      - Bindings.putAll : 2 NPEs
      - SimpleBindings.putAll : 2 NPEs
      - Compilable.compile : 2 ScriptExceptions
      - ScriptContext.setAttribute : 2 IllegalArgumentExceptions
      - ScriptContext.removeAttribute : 2 IllegalArgumentExceptions
      - ScriptContext.getAttribute: 2 IllegalArgumentExceptions
      - SimpleScriptContext.setAttribute : 2 IllegalArgumentExceptions
      - SimpleScriptContext.removeAttribute : 2 IllegalArgumentExceptions
      - SimpleScriptContext.getAttribute: 2 IllegalArgumentExceptions
      - ScriptEngine.eval(java.io.Reader reader) : 2 ScriptExceptions

      2) typo in javax.script.ScriptEngine.setContext(ScriptContext context):

      The javadoc reads:

      "Sets the default code>ScriptContext of....", look like "code>" is an
      javadoc tag.

      "code>" should have been "<code>"

      These bugs were reported by Alexey Gavrilov and Vladimir Smelov.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: