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

Collapse All | Expand All

(-)codeassist/org/eclipse/jdt/internal/codeassist/CompletionEngine.java (+10 lines)
Lines 3779-3784 Link Here
3779
			TypeDeclaration typeDeclaration = ((ClassScope)scope).referenceContext;
3779
			TypeDeclaration typeDeclaration = ((ClassScope)scope).referenceContext;
3780
			if(typeDeclaration.superclass == astNode) {
3780
			if(typeDeclaration.superclass == astNode) {
3781
				addForbiddenBindings(typeDeclaration.binding);
3781
				addForbiddenBindings(typeDeclaration.binding);
3782
				addForbiddenBindingsForMemberTypes(typeDeclaration);
3782
				return scope.parent;
3783
				return scope.parent;
3783
			}
3784
			}
3784
			TypeReference[] superInterfaces = typeDeclaration.superInterfaces;
3785
			TypeReference[] superInterfaces = typeDeclaration.superInterfaces;
Lines 3786-3791 Link Here
3786
			for (int i = 0; i < length; i++) {
3787
			for (int i = 0; i < length; i++) {
3787
				if(superInterfaces[i] == astNode) {
3788
				if(superInterfaces[i] == astNode) {
3788
					addForbiddenBindings(typeDeclaration.binding);
3789
					addForbiddenBindings(typeDeclaration.binding);
3790
					addForbiddenBindingsForMemberTypes(typeDeclaration);
3789
					return scope.parent;
3791
					return scope.parent;
3790
				}
3792
				}
3791
			}
3793
			}
Lines 3822-3827 Link Here
3822
		return scope;
3824
		return scope;
3823
	}
3825
	}
3824
3826
3827
	private void addForbiddenBindingsForMemberTypes(TypeDeclaration typeDeclaration) {
3828
		TypeDeclaration[] memberTypes = typeDeclaration.memberTypes;
3829
		int memberTypesLen = memberTypes == null ? 0 : memberTypes.length;
3830
		for (int i = 0; i < memberTypesLen; i++) {
3831
			addForbiddenBindings(memberTypes[i].binding);
3832
		}
3833
	}
3834
3825
	private char[] computePrefix(SourceTypeBinding declarationType, SourceTypeBinding invocationType, boolean isStatic){
3835
	private char[] computePrefix(SourceTypeBinding declarationType, SourceTypeBinding invocationType, boolean isStatic){
3826
3836
3827
		StringBuffer completion = new StringBuffer(10);
3837
		StringBuffer completion = new StringBuffer(10);

Return to bug 270437