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

(-)compiler/org/eclipse/jdt/internal/compiler/lookup/WildcardBinding.java (-1 / +4 lines)
Lines 386-392 Link Here
386
    	if (this.otherBounds == null) {
386
    	if (this.otherBounds == null) {
387
	    	if (this.boundKind == Wildcard.EXTENDS)
387
	    	if (this.boundKind == Wildcard.EXTENDS)
388
		        return this.bound.erasure();
388
		        return this.bound.erasure();
389
	    	return typeVariable().erasure();
389
			TypeVariableBinding var = typeVariable();
390
			if (var != null)
391
				return var.erasure();
392
		    return this.genericType; // if typeVariable() == null, then its inconsistent & return this.genericType to avoid NPE case
390
    	}
393
    	}
391
    	// intersection type
394
    	// intersection type
392
    	return this.bound.id == TypeIds.T_JavaLangObject
395
    	return this.bound.id == TypeIds.T_JavaLangObject

Return to bug 280134