8068741: javax.script.ScriptEngineFactory.getMethodCallSyntax() spec allows null passed as an object

Reviewed-by: hannesw
This commit is contained in:
Athijegannathan Sundararajan 2017-11-15 23:25:40 +05:30
parent f441abcff1
commit d6cf9ab9cd
3 changed files with 67 additions and 3 deletions

View file

@ -176,6 +176,8 @@ public interface ScriptEngineFactory {
* @param args names of the arguments in the method call.
*
* @return The String used to invoke the method in the syntax of the scripting language.
*
* @throws NullPointerException if obj or m or args or any of the elements of args is null.
*/
public String getMethodCallSyntax(String obj, String m, String... args);