Buggy code:
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 |= ASTNode . DisableUnnecessaryCastCheck ; argsContainCast = true ; } if ( ( argumentTypes [ i ] = argument . resolveType ( scope ) ) == null ) { argHasError = true ; } } if ( argHasError ) { if ( ( actualReceiverType ) instanceof ReferenceBinding ) { TypeBinding [ ] pseudoArgs = new TypeBinding [ length ] ; for ( int i = length ; ( -- i ) >= 0 ; ) pseudoArgs [ i ] = ( ( argumentTypes [ i ] ) == null ) ? actualReceiverType : argumentTypes [ i ] ; this . binding = scope . findMethod ( ( ( ReferenceBinding ) ( actualReceiverType ) ) , selector , pseudoArgs , this ) ; } return null ; } } if ( ( this . actualReceiverType ) == null ) { return null ; } if ( this . actualReceiverType . isBaseType ( ) ) { scope . problemReporter ( ) . errorNoMethodFor ( this , this . actualReceiverType , argumentTypes ) ; return null ; } this . binding = ( receiver . isImplicitThis ( ) ) ? scope . getImplicitMethod ( selector , argumentTypes , this ) : scope . getMethod ( this . actualReceiverType , selector , argumentTypes , this ) ; if ( ! ( binding . isValidBinding ( ) ) ) { if ( ( binding . declaringClass ) == null ) { if ( ( this . actualReceiverType ) instanceof ReferenceBinding ) { binding . declaringClass = ( ( ReferenceBinding ) ( this . actualReceiverType ) ) ; } else { scope . problemReporter ( ) . errorNoMethodFor ( this , this . actualReceiverType , 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 ( ) ) || ( closestMatch . declaringClass . isLocalType ( ) ) ) && ( ! ( scope . isDefinedInMethod ( closestMatch ) ) ) ) { closestMatch . original ( ) . modifiers |= ExtraCompilerModifiers . AccLocallyUsed ; } } return this . resolvedType ; } if ( ! ( binding . isStatic ( ) ) ) { if ( receiverIsType ) { scope . problemReporter ( ) . mustUseAStaticMethod ( this , binding ) ; if ( ( ( this . actualReceiverType . isRawType ( ) ) && ( ( ( this . receiver . bits ) & ( ASTNode . IgnoreRawTypeCheck ) ) == 0 ) ) && ( ( scope . compilerOptions ( ) . getSeverity ( CompilerOptions . RawTypeReference ) ) != ( ProblemSeverities . Ignore ) ) ) { scope . problemReporter ( ) . rawTypeReference ( this . receiver , this . actualReceiverType ) ; } } else { TypeBinding receiverErasure = this . actualReceiverType . erasure ( ) ; if ( receiverErasure instanceof ReferenceBinding ) { ReferenceBinding match = ( ( ReferenceBinding ) ( receiverErasure ) ) . findSuperTypeWithSameErasure ( this . binding . declaringClass ) ; if ( match == null ) { this . actualReceiverType = this . binding . declaringClass ; } } receiver . computeConversion ( scope , this . actualReceiverType , this . actualReceiverType ) ; } } else { if ( ! ( ( ( receiver . isImplicitThis ( ) ) || ( receiver . isSuper ( ) ) ) || receiverIsType ) ) { scope . problemReporter ( ) . nonStaticAccessToStaticMethod ( this , binding ) ; } if ( ( ! ( receiver . isImplicitThis ( ) ) ) && ( ( binding . declaringClass ) != ( actualReceiverType ) ) ) { scope . problemReporter ( ) . indirectAccessToStaticMethod ( this , binding ) ; } } ASTNode . checkInvocationArguments ( scope , this . receiver , actualReceiverType , binding , this . arguments , argumentTypes , argsContainCast , this ) ; if ( binding . isAbstract ( ) ) { if ( receiver . isSuper ( ) ) { scope . problemReporter ( ) . cannotDireclyInvokeAbstractMethod ( this , binding ) ; } } <START_BUG> if ( isMethodUseDeprecated ( binding , scope ) ) <END_BUG> scope . problemReporter ( ) . deprecatedMethod ( binding , this ) ; if ( ( ( ( actualReceiverType . isArrayType ( ) ) && ( ( this . binding . parameters ) == ( NoParameters ) ) ) && ( ( scope . compilerOptions ( ) . complianceLevel ) >= ( ClassFileConstants . JDK1_5 ) ) ) && ( CharOperation . equals ( this . binding . selector , TypeConstants . CLONE ) ) ) { this . resolvedType = actualReceiverType ; } else { TypeBinding returnType = this . binding . returnType ; if ( returnType != null ) returnType = returnType . capture ( scope , this . sourceEnd ) ; this . resolvedType = returnType ; } return this . resolvedType ; } public void setActualReceiverType ( ReferenceBinding receiverType ) { } public void setDepth ( int depth ) { } public void setExpectedType ( TypeBinding expectedType ) { } public void setFieldIndex ( int depth ) { } public void traverse ( ASTVisitor visitor , BlockScope blockScope ) { } }

Fix:
if ( isMethodUseDeprecated ( binding , scope , true ) )