Lines 1356-1361
Link Here
|
1356 |
Argument arg = arguments[i]; |
1356 |
Argument arg = arguments[i]; |
1357 |
TypeBinding parameterType = arg.type.resolveType(methodDecl.scope, true /* check bounds*/); |
1357 |
TypeBinding parameterType = arg.type.resolveType(methodDecl.scope, true /* check bounds*/); |
1358 |
if (parameterType == null) { |
1358 |
if (parameterType == null) { |
|
|
1359 |
parameterType = TypeBinding.INT; |
1359 |
foundArgProblem = true; |
1360 |
foundArgProblem = true; |
1360 |
} else if (parameterType == TypeBinding.VOID) { |
1361 |
} else if (parameterType == TypeBinding.VOID) { |
1361 |
methodDecl.scope.problemReporter().argumentTypeCannotBeVoid(this, methodDecl, arg); |
1362 |
methodDecl.scope.problemReporter().argumentTypeCannotBeVoid(this, methodDecl, arg); |
Lines 1369-1374
Link Here
|
1369 |
method.modifiers |= ExtraCompilerModifiers.AccGenericSignature; |
1370 |
method.modifiers |= ExtraCompilerModifiers.AccGenericSignature; |
1370 |
method.parameters[i] = parameterType; |
1371 |
method.parameters[i] = parameterType; |
1371 |
} |
1372 |
} |
|
|
1373 |
method.parameters[i] = parameterType; |
1372 |
} |
1374 |
} |
1373 |
} |
1375 |
} |
1374 |
|
1376 |
|
Lines 1397-1410
Link Here
|
1397 |
} |
1399 |
} |
1398 |
} |
1400 |
} |
1399 |
if (foundArgProblem) { |
1401 |
if (foundArgProblem) { |
1400 |
methodDecl.binding = null; |
1402 |
// methodDecl.binding = null; |
1401 |
method.parameters = Binding.NO_PARAMETERS; // see 107004 |
1403 |
// method.parameters = Binding.NO_PARAMETERS; // see 107004 |
1402 |
// nullify type parameter bindings as well as they have a backpointer to the method binding |
1404 |
// // nullify type parameter bindings as well as they have a backpointer to the method binding |
1403 |
// (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=81134) |
1405 |
// // (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=81134) |
1404 |
if (typeParameters != null) |
1406 |
// if (typeParameters != null) |
1405 |
for (int i = 0, length = typeParameters.length; i < length; i++) |
1407 |
// for (int i = 0, length = typeParameters.length; i < length; i++) |
1406 |
typeParameters[i].binding = null; |
1408 |
// typeParameters[i].binding = null; |
1407 |
return null; |
1409 |
// return null; |
|
|
1410 |
return method; |
1408 |
} |
1411 |
} |
1409 |
if (foundReturnTypeProblem) |
1412 |
if (foundReturnTypeProblem) |
1410 |
return method; // but its still unresolved with a null return type & is still connected to its method declaration |
1413 |
return method; // but its still unresolved with a null return type & is still connected to its method declaration |