Buggy code:
boolean receiverCast = false ; boolean argsContainCast = false ; if ( ( this . receiver ) instanceof CastExpression ) { this . receiver . bits |= IgnoreNeedForCastCheckMASK ; receiverCast = true ; } this . qualifyingType = this . receiverType = receiver . resolveType ( scope ) ; if ( receiverCast && ( ( this . receiverType ) != null ) ) { if ( ( ( ( CastExpression ) ( this . receiver ) ) . expression . resolvedType ) == ( this . receiverType ) ) { scope . problemReporter ( ) . unnecessaryCast ( ( ( CastExpression ) ( this . receiver ) ) ) ; } } if ( ( this . typeArguments ) != null ) { int length = this . typeArguments . length ; boolean argHasError = false ; this . genericTypeArguments = new TypeBinding [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { if ( ( this . genericTypeArguments [ i ] = this . typeArguments [ i ] . resolveType ( scope ) ) == null ) { argHasError = true ; } } if ( argHasError ) { return null ; } } TypeBinding [ ] argumentTypes = NoParameters ; if ( ( arguments ) != null ) { boolean argHasError = false ; int length = arguments . length ; argumentTypes = new TypeBinding [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { Expression argument = arguments [ i ] ; if ( argument instanceof CastExpression ) { argument . bits |= IgnoreNeedForCastCheckMASK ; argsContainCast = true ; } if ( ( argumentTypes [ i ] = argument . resolveType ( scope ) ) == null ) { argHasError = true ; } } if ( argHasError ) { if ( ( receiverType ) instanceof ReferenceBinding ) { this . binding = scope . findMethod ( ( ( ReferenceBinding ) ( receiverType ) ) , selector , new TypeBinding [ ] { } , this ) ; } return null ; } } if ( ( this . receiverType ) == null ) { return null ; } if ( this . receiverType . isBaseType ( ) ) { scope . problemReporter ( ) . errorNoMethodFor ( this , this . receiverType , argumentTypes ) ; return null ; } this . binding = ( receiver . isImplicitThis ( ) ) ? scope . getImplicitMethod ( selector , argumentTypes , this ) : scope . getMethod ( this . receiverType , selector , argumentTypes , this ) ; if ( ! ( binding . isValidBinding ( ) ) ) { if ( ( binding . declaringClass ) == null ) { if ( ( this . receiverType ) instanceof ReferenceBinding ) { binding . declaringClass = ( ( ReferenceBinding ) ( this . receiverType ) ) ; } else { scope . problemReporter ( ) . errorNoMethodFor ( this , this . receiverType , argumentTypes ) ; return null ; } } scope . problemReporter ( ) . invalidMethod ( this , binding ) ; MethodBinding closestMatch = ( ( ProblemMethodBinding ) ( binding ) ) . closestMatch ; switch ( this . binding . problemId ( ) ) { case ProblemReasons . Ambiguous : case ProblemReasons . NotVisible : case ProblemReasons . NonStaticReferenceInConstructorInvocation : case ProblemReasons . NonStaticReferenceInStaticContext : case ProblemReasons . ReceiverTypeNotVisible : case ProblemReasons . ParameterBoundMismatch : if ( closestMatch != null ) this . resolvedType = closestMatch . returnType ; default : } if ( closestMatch != null ) { this . binding = closestMatch ; if ( ( closestMatch . isPrivate ( ) ) && ( ! ( scope . isDefinedInMethod ( closestMatch ) ) ) ) { <START_BUG> closestMatch . modifiers |= AccPrivateUsed ; <END_BUG> } } return this . resolvedType ; } if ( ! ( binding . isStatic ( ) ) ) { if ( ( ( receiver ) instanceof NameReference ) && ( ( ( ( ( NameReference ) ( receiver ) ) . bits ) & ( BindingIds . TYPE ) ) != 0 ) ) { scope . problemReporter ( ) . mustUseAStaticMethod ( this , binding ) ; } receiver . computeConversion ( scope , receiverType , receiverType ) ; } else { if ( ! ( ( ( receiver . isImplicitThis ( ) ) || ( receiver . isSuper ( ) ) ) || ( ( ( receiver ) instanceof NameReference ) && ( ( ( ( ( NameReference ) ( receiver ) ) . bits ) & ( BindingIds . TYPE ) ) != 0 ) ) ) ) { scope . problemReporter ( ) . nonStaticAccessToStaticMethod ( this , binding ) ; } if ( ( ! ( receiver . isImplicitThis ( ) ) ) && ( ( binding . declaringClass ) != ( receiverType ) ) ) { scope . problemReporter ( ) . indirectAccessToStaticMethod ( this , binding ) ; } } if ( ( this . arguments ) != null ) ASTNode . checkInvocationArguments ( scope , this . receiver , receiverType , binding , this . arguments , argumentTypes , argsContainCast , this ) ; if ( binding . isAbstract ( ) ) { if ( receiver . isSuper ( ) ) { scope . problemReporter ( ) . cannotDireclyInvokeAbstractMethod ( this , binding ) ; } } if ( isMethodUseDeprecated ( binding , scope ) ) scope . problemReporter ( ) . deprecatedMethod ( binding , this ) ; return this . resolvedType = this . binding . returnType ; } public void setActualReceiverType ( ReferenceBinding receiverType ) { } public void setExpectedType ( TypeBinding expectedType ) { } public void setDepth ( int depth ) { } public void setFieldIndex ( int depth ) { } public void traverse ( ASTVisitor visitor , BlockScope blockScope ) { } }

Fix:
closestMatch . original ( ) . modifiers |= AccPrivateUsed ;