Lines 63-69
Link Here
|
63 |
if (argLength >= paramLength) { |
63 |
if (argLength >= paramLength) { |
64 |
// right number of arguments - could be inexact - pass argument as is |
64 |
// right number of arguments - could be inexact - pass argument as is |
65 |
TypeBinding lastType = arguments[varArgIndex].resolvedType; |
65 |
TypeBinding lastType = arguments[varArgIndex].resolvedType; |
66 |
if (lastType == NullBinding |
66 |
if ((lastType == NullBinding && (argLength - varArgIndex) == 1) |
67 |
|| (varArgsType.dimensions() == lastType.dimensions() |
67 |
|| (varArgsType.dimensions() == lastType.dimensions() |
68 |
&& lastType.isCompatibleWith(varArgsType))) { |
68 |
&& lastType.isCompatibleWith(varArgsType))) { |
69 |
// foo(1, new int[]{2, 3}) or foo(1, null) --> last arg is passed as-is |
69 |
// foo(1, new int[]{2, 3}) or foo(1, null) --> last arg is passed as-is |