-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b46
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8085579 | emb-9 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | team |
JDK-8087014 | 8u65 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b01 |
JDK-8068575 | 8u60 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b01 |
JDK-8138468 | emb-8u65 | Unassigned | P3 | Resolved | Fixed | b01 |
JDK-8076928 | emb-8u60 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | team |
http://docs.oracle.com/javase/8/docs/api/javax/script/ScriptEngineFactory.html#getParameter-java.lang.String-
says:
"Returns null if no value is assigned to the key."
and doesn't mention any IAEs.
However the following line executed on Oracle's JDK.
new ScriptEngineManager().getEngineFactories().forEach(f -> f.getParameter("no value assigned to this key"));
will throw
java.lang.IllegalArgumentException: Invalid key
at jdk.nashorn.api.scripting.NashornScriptEngineFactory.getParameter(NashornScriptEngineFactory.java:123)
which doesn't conform to the current spec and the corresponding JCK9(b05) test will fail on JDK9:
api/javax_script/ScriptEngineFactory/index.html#GetParameter[noValue]
The specification or the Nashorn implementation needs to be corrected.
- backported by
-
JDK-8068575 NashornScriptEngineFactory.getParameter() throws IAE for an unknown key, doesn't conform to the general spec
-
- Resolved
-
-
JDK-8076928 NashornScriptEngineFactory.getParameter() throws IAE for an unknown key, doesn't conform to the general spec
-
- Resolved
-
-
JDK-8085579 NashornScriptEngineFactory.getParameter() throws IAE for an unknown key, doesn't conform to the general spec
-
- Resolved
-
-
JDK-8087014 NashornScriptEngineFactory.getParameter() throws IAE for an unknown key, doesn't conform to the general spec
-
- Resolved
-
-
JDK-8138468 NashornScriptEngineFactory.getParameter() throws IAE for an unknown key, doesn't conform to the general spec
-
- Resolved
-