Buggy code:
private ) ) { findKeywordsForMember ( this . completionToken , field . modifiers ) ; } if ( ( ! ( field . isLocalVariable ) ) && ( ( field . modifiers ) == ( CompilerModifiers . AccDefault ) ) ) { if ( ! ( this . requestor . isIgnored ( CompletionProposal . METHOD_DECLARATION ) ) ) { findMethods ( this . completionToken , null , scope . enclosingSourceType ( ) , scope , new ObjectVector ( ) , false , false , true , null , null , false , false , true ) ; } if ( ! ( this . requestor . isIgnored ( CompletionProposal . POTENTIAL_METHOD_DECLARATION ) ) ) { proposeNewMethod ( this . completionToken , scope . enclosingSourceType ( ) ) ; } } } else { if ( astNode instanceof CompletionOnMethodReturnType ) { CompletionOnMethodReturnType method = ( ( CompletionOnMethodReturnType ) ( astNode ) ) ; SingleTypeReference type = ( ( CompletionOnSingleTypeReference ) ( method . returnType ) ) ; this . completionToken = type . token ; setSourceRange ( type . sourceStart , type . sourceEnd ) ; findTypesAndPackages ( this . completionToken , scope . parent ) ; if ( ! ( this . requestor . isIgnored ( CompletionProposal . KEYWORD ) ) ) { findKeywordsForMember ( this . completionToken , method . modifiers ) ; } if ( ( method . modifiers ) == ( CompilerModifiers . AccDefault ) ) { if ( ! ( this . requestor . isIgnored ( CompletionProposal . METHOD_DECLARATION ) ) ) { findMethods ( this . completionToken , null , scope . enclosingSourceType ( ) , scope , new ObjectVector ( ) , false , false , true , null , null , false , false , true ) ; } if ( ! ( this . requestor . isIgnored ( CompletionProposal . POTENTIAL_METHOD_DECLARATION ) ) ) { proposeNewMethod ( this . completionToken , scope . enclosingSourceType ( ) ) ; } } } else { if ( astNode instanceof CompletionOnSingleNameReference ) { CompletionOnSingleNameReference singleNameReference = ( ( CompletionOnSingleNameReference ) ( astNode ) ) ; this . completionToken = singleNameReference . token ; SwitchStatement switchStatement = ( astNodeParent instanceof SwitchStatement ) ? ( ( SwitchStatement ) ( astNodeParent ) ) : null ; if ( ( ( switchStatement != null ) && ( ( switchStatement . expression . resolvedType ) != null ) ) && ( switchStatement . expression . resolvedType . isEnum ( ) ) ) { if ( ! ( this . requestor . isIgnored ( CompletionProposal . FIELD_REF ) ) ) { this . findEnumConstant ( this . completionToken , ( ( SwitchStatement ) ( astNodeParent ) ) ) ; } } else { if ( ( ( this . expectedTypesPtr ) > ( - 1 ) ) && ( this . expectedTypes [ 0 ] . isAnnotationType ( ) ) ) { findTypesAndPackages ( this . completionToken , scope ) ; } else { findVariablesAndMethods ( this . completionToken , scope , singleNameReference , scope , insideTypeAnnotation , singleNameReference . isInsideAnnotationAttribute ) ; findTypesAndPackages ( this . completionToken , scope ) ; if ( ! ( this . requestor . isIgnored ( CompletionProposal . KEYWORD ) ) ) { findKeywords ( this . completionToken , singleNameReference . possibleKeywords ) ; } if ( ( singleNameReference . canBeExplicitConstructor ) && ( ! ( this . requestor . isIgnored ( CompletionProposal . METHOD_REF ) ) ) ) { if ( CharOperation . prefixEquals ( this . completionToken , Keywords . THIS , false ) ) { ReferenceBinding ref = scope . enclosingSourceType ( ) ; findExplicitConstructors ( Keywords . THIS , ref , ( ( MethodScope ) ( scope ) ) , singleNameReference ) ; } else if ( CharOperation . prefixEquals ( this . completionToken , Keywords . SUPER , false ) ) { ReferenceBinding ref = scope . enclosingSourceType ( ) ; findExplicitConstructors ( Keywords . SUPER , ref . superclass ( ) , ( ( MethodScope ) ( scope ) ) , singleNameReference ) ; } } } } } else { if ( astNode instanceof CompletionOnSingleTypeReference ) { this . completionToken = ( ( CompletionOnSingleTypeReference ) ( astNode ) ) . token ; this . assistNodeIsClass = astNode instanceof CompletionOnClassReference ; this . assistNodeIsEnum = this . assistNodeIsClass ; this . assistNodeIsException = astNode instanceof CompletionOnExceptionReference ; this . assistNodeIsInterface = astNode instanceof CompletionOnInterfaceReference ; if ( qualifiedBinding == null ) { findTypesAndPackages ( this . completionToken , scope ) ; } else { if ( ! ( this . requestor . isIgnored ( CompletionProposal . TYPE_REF ) ) ) { findMemberTypes ( this . completionToken , ( ( ReferenceBinding ) ( qualifiedBinding ) ) , scope , scope . enclosingSourceType ( ) , false , new ObjectVector ( ) ) ; } } } else { if ( astNode instanceof CompletionOnQualifiedNameReference ) { this . insideQualifiedReference = true ; CompletionOnQualifiedNameReference ref = ( ( CompletionOnQualifiedNameReference ) ( astNode ) ) ; this . completionToken = ref . completionIdentifier ; long completionPosition = ref . sourcePositions [ ( ( ref . sourcePositions . length ) - 1 ) ] ; if ( qualifiedBinding instanceof VariableBinding ) { setSourceRange ( ( ( int ) ( completionPosition > > > 32 ) ) , ( ( int ) ( completionPosition ) ) ) ; TypeBinding receiverType = ( ( VariableBinding ) ( qualifiedBinding ) ) . type ; if ( receiverType != null ) { findFieldsAndMethods ( this . completionToken , receiverType , scope , ref , scope , false , false ) ; } } else { if ( qualifiedBinding instanceof ReferenceBinding ) { boolean isInsideAnnotationAttribute = ref . isInsideAnnotationAttribute ; ReferenceBinding receiverType = ( ( ReferenceBinding ) ( qualifiedBinding ) ) ; setSourceRange ( ( ( int ) ( completionPosition > > > 32 ) ) , ( ( int ) ( completionPosition ) ) ) ; if ( ! ( this . requestor . isIgnored ( CompletionProposal . TYPE_REF ) ) ) { findMemberTypes ( this . completionToken , receiverType , scope , scope . enclosingSourceType ( ) , false , new ObjectVector ( ) ) ; } if ( ! ( this . requestor . isIgnored ( CompletionProposal . FIELD_REF ) ) ) { findClassField ( this . completionToken , ( ( TypeBinding ) ( qualifiedBinding ) ) , scope ) ; } MethodScope methodScope = null ; <START_BUG> if ( ( isInsideAnnotationAttribute && ( ! ( this . requestor . isIgnored ( CompletionProposal . KEYWORD ) ) ) ) && ( ( ( scope instanceof MethodScope ) && ( ! ( ( ( MethodScope ) ( scope ) ) . isStatic ) ) ) || ( ( ( methodScope = scope . enclosingMethodScope ( ) ) != null ) && ( ! ( methodScope . isStatic ) ) ) ) ) { <END_BUG>

Fix:
if ( ( ( ! isInsideAnnotationAttribute ) && ( ! ( this . requestor . isIgnored ( CompletionProposal . KEYWORD ) ) ) ) && ( ( ( scope instanceof MethodScope ) && ( ! ( ( ( MethodScope ) ( scope ) ) . isStatic ) ) ) || ( ( ( methodScope = scope . enclosingMethodScope ( ) ) != null ) && ( ! ( methodScope . isStatic ) ) ) ) ) {