8068587: ScriptEngineFactory.getParameter() should specify NPE for a null key
Reviewed-by: alanb, lagergren
--- a/jdk/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java Mon Feb 09 17:49:26 2015 -0800
+++ b/jdk/src/java.scripting/share/classes/javax/script/ScriptEngineFactory.java Tue Feb 10 14:44:33 2015 +0530
@@ -138,6 +138,7 @@
* @return The value for the given parameter. Returns <code>null</code> if no
* value is assigned to the key.
*
+ * @throws NullPointerException if the key is null.
*/
public Object getParameter(String key);