View | Details | Raw Unified | Return to bug 107931 | Differences between
and this patch

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java (-8 / +11 lines)
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
(-)src/org/eclipse/jdt/core/tests/model/ReconcilerTests.java (-1 / +1 lines)
Lines 3388-3394 Link Here
3388
}
3388
}
3389
3389
3390
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=107931
3390
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=107931
3391
public void _test1001() throws CoreException, InterruptedException, IOException {
3391
public void testONLY_1001() throws CoreException, InterruptedException, IOException {
3392
	try {
3392
	try {
3393
		// Resources creation
3393
		// Resources creation
3394
		String sources[] = new String[3];
3394
		String sources[] = new String[3];

Return to bug 107931