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

Collapse All | Expand All

(-)core refactoring/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsConstraintCreator.java (-1 / +4 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2006 IBM Corporation and others.
2
 * Copyright (c) 2000, 2008 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 459-464 Link Here
459
			//type of expression 'e.getClass()' is 'Class<? extends X>' where X is the static type of e
459
			//type of expression 'e.getClass()' is 'Class<? extends X>' where X is the static type of e
460
			ITypeBinding capture= returnType.getTypeArguments()[0];
460
			ITypeBinding capture= returnType.getTypeArguments()[0];
461
			ITypeBinding wildcard= capture.getWildcard();
461
			ITypeBinding wildcard= capture.getWildcard();
462
			if (wildcard.getBound() == null)
463
				return; // workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=234619
464
			
462
			ImmutableTypeVariable2 wildcardType= fTCModel.makeImmutableTypeVariable(wildcard,  /*no boxing*/null);
465
			ImmutableTypeVariable2 wildcardType= fTCModel.makeImmutableTypeVariable(wildcard,  /*no boxing*/null);
463
			fTCModel.createSubtypeConstraint(classTypeVariable, wildcardType);
466
			fTCModel.createSubtypeConstraint(classTypeVariable, wildcardType);
464
			
467
			

Return to bug 211037