Index: Statement.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Statement.java,v retrieving revision 1.33 diff -u -r1.33 Statement.java --- Statement.java 23 Feb 2005 02:47:28 -0000 1.33 +++ Statement.java 3 Mar 2005 15:53:25 -0000 @@ -63,7 +63,7 @@ if (argLength >= paramLength) { // right number of arguments - could be inexact - pass argument as is TypeBinding lastType = arguments[varArgIndex].resolvedType; - if (lastType == NullBinding + if ((lastType == NullBinding && (argLength - varArgIndex) == 1) || (varArgsType.dimensions() == lastType.dimensions() && lastType.isCompatibleWith(varArgsType))) { // foo(1, new int[]{2, 3}) or foo(1, null) --> last arg is passed as-is