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

Collapse All | Expand All

(-)dom/org/eclipse/jdt/core/dom/TypeBinding.java (-2 / +4 lines)
Lines 374-386 Link Here
374
	}
374
	}
375
	
375
	
376
	private JavaElement getUnresolvedJavaElement() {
376
	private JavaElement getUnresolvedJavaElement() {
377
		org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding = this.binding;
377
		return getUnresolvedJavaElement(this.binding);
378
	}
379
	private JavaElement getUnresolvedJavaElement(org.eclipse.jdt.internal.compiler.lookup.TypeBinding typeBinding ) {
378
		if (typeBinding == null) 
380
		if (typeBinding == null) 
379
			return null;
381
			return null;
380
		switch (typeBinding.kind()) {
382
		switch (typeBinding.kind()) {
381
			case Binding.ARRAY_TYPE :
383
			case Binding.ARRAY_TYPE :
382
				typeBinding = ((ArrayBinding) typeBinding).leafComponentType();
384
				typeBinding = ((ArrayBinding) typeBinding).leafComponentType();
383
				break;
385
				return getUnresolvedJavaElement(typeBinding);
384
			case Binding.BASE_TYPE :
386
			case Binding.BASE_TYPE :
385
			case Binding.WILDCARD_TYPE :
387
			case Binding.WILDCARD_TYPE :
386
				return null;
388
				return null;

Return to bug 100142