# HG changeset patch # User ohair # Date 1297417555 28800 # Node ID cbcff564fa0d7b9f34f8e31bd6fc14d6609afda1 # Parent 3804a97b58c0675828be0380a1f09c9cbe96ca99# Parent 8156ef75e9e79f01090455fcc577585bb923f253 Merge diff -r 3804a97b58c0 -r cbcff564fa0d jdk/src/share/classes/javax/script/ScriptEngineFactory.java --- a/jdk/src/share/classes/javax/script/ScriptEngineFactory.java Thu Feb 10 20:48:02 2011 -0800 +++ b/jdk/src/share/classes/javax/script/ScriptEngineFactory.java Fri Feb 11 01:45:55 2011 -0800 @@ -152,12 +152,11 @@ * ret += "." + m + "("; * for (int i = 0; i < args.length; i++) { * ret += args[i]; - * if (i == args.length - 1) { - * ret += ")"; - * } else { + * if (i < args.length - 1) { * ret += ","; * } * } + * ret += ")"; * return ret; * } *