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

javax.script.ScriptEngineFactory.getParameter spec is not completely consistent with the rest of the API

XMLWordPrintable

        The following specification
        http://docs.oracle.com/javase/8/docs/api/javax/script/ScriptEngineFactory.html#getParameter-java.lang.String-
        says:
        ---
        Keys for which the value is defined in all implementations are:
        ScriptEngine.ENGINE
        ScriptEngine.ENGINE_VERSION
        ScriptEngine.NAME
        ScriptEngine.LANGUAGE
        ScriptEngine.LANGUAGE_VERSION
        The values for these keys are the Strings returned by getEngineName, getEngineVersion, getName, getLanguageName and getLanguageVersion respectively.
        ---

        This part of the text is not correct regarding getName() method since there is no such method in the current API.

        Yet the following method exists:
        http://docs.oracle.com/javase/8/docs/api/javax/script/ScriptEngineFactory.html#getNames--

              Unassigned Unassigned
              dbessono Dmitry Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: