View | Details | Raw Unified | Return to bug 174434
Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java (-2 / +8 lines)
Lines 272-279 Link Here
272
			int length = this.typeArguments.length;
272
			int length = this.typeArguments.length;
273
			this.genericTypeArguments = new TypeBinding[length];
273
			this.genericTypeArguments = new TypeBinding[length];
274
			for (int i = 0; i < length; i++) {
274
			for (int i = 0; i < length; i++) {
275
				TypeBinding argType = this.typeArguments[i].resolveType(scope, true /* check bounds*/);
275
				TypeReference typeReference = this.typeArguments[i];				
276
				if (argType == null) return null; // error already reported
276
				TypeBinding argType = typeReference.resolveType(scope, true /* check bounds*/);
277
				if (argType == null) {
278
					if (typeReference instanceof Wildcard) {
279
						scope.problemReporter().illegalUsageOfWildcard(typeReference);
280
					}
281
					return null; // error already reported
282
				}
277
				this.genericTypeArguments[i] = argType;
283
				this.genericTypeArguments[i] = argType;
278
			}
284
			}
279
		}
285
		}
(-)compiler/org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java (-1 / +5 lines)
Lines 252-260 Link Here
252
		boolean argHasError = false; // typeChecks all arguments
252
		boolean argHasError = false; // typeChecks all arguments
253
		this.genericTypeArguments = new TypeBinding[length];
253
		this.genericTypeArguments = new TypeBinding[length];
254
		for (int i = 0; i < length; i++) {
254
		for (int i = 0; i < length; i++) {
255
			if ((this.genericTypeArguments[i] = this.typeArguments[i].resolveType(scope, true /* check bounds*/)) == null) {
255
			TypeReference typeReference = this.typeArguments[i];
256
			if ((this.genericTypeArguments[i] = typeReference.resolveType(scope, true /* check bounds*/)) == null) {
256
				argHasError = true;
257
				argHasError = true;
257
			}
258
			}
259
			if (argHasError && typeReference instanceof Wildcard) {
260
				scope.problemReporter().illegalUsageOfWildcard(typeReference);
261
			}
258
		}
262
		}
259
		if (argHasError) {
263
		if (argHasError) {
260
			return null;
264
			return null;
(-)compiler/org/eclipse/jdt/internal/compiler/ast/ExplicitConstructorCall.java (-1 / +5 lines)
Lines 294-302 Link Here
294
				boolean argHasError = false; // typeChecks all arguments
294
				boolean argHasError = false; // typeChecks all arguments
295
				this.genericTypeArguments = new TypeBinding[length];
295
				this.genericTypeArguments = new TypeBinding[length];
296
				for (int i = 0; i < length; i++) {
296
				for (int i = 0; i < length; i++) {
297
					if ((this.genericTypeArguments[i] = this.typeArguments[i].resolveType(scope, true /* check bounds*/)) == null) {
297
					TypeReference typeReference = this.typeArguments[i];
298
					if ((this.genericTypeArguments[i] = typeReference.resolveType(scope, true /* check bounds*/)) == null) {
298
						argHasError = true;
299
						argHasError = true;
299
					}
300
					}
301
					if (argHasError && typeReference instanceof Wildcard) {
302
						scope.problemReporter().illegalUsageOfWildcard(typeReference);
303
					}
300
				}
304
				}
301
				if (argHasError) {
305
				if (argHasError) {
302
					return;
306
					return;

Return to bug 174434