Buggy code:
class ASTConverter { private AST ast ; private char [ ] compilationUnitSource ; private Scanner scanner ; private boolean resolveBindings ; private Set pendingThisExpressionScopeResolution ; private Set pendingNameScopeResolution ; public ASTConverter ( Map options , boolean resolveBindings ) { } public void setAST ( AST ast ) { } public CompilationUnit convert ( CompilationUnitDeclaration unit , char [ ] source ) { } public PackageDeclaration convertPackage ( CompilationUnitDeclaration compilationUnitDeclaration ) { } public ImportDeclaration convertImport ( ImportReference importReference ) { } public TypeDeclaration convert ( org . eclipse . jdt . internal . compiler . ast . TypeDeclaration typeDeclaration ) { } private void buildBodyDeclarations ( org . eclipse . jdt . internal . compiler . ast . TypeDeclaration typeDeclaration , TypeDeclaration typeDecl ) { } private void checkAndAddMultipleFieldDeclaration ( FieldDeclaration [ ] fields , int index , List bodyDeclarations ) { } private void checkAndAddMultipleLocalDeclaration ( Statement [ ] stmts , int index , List blockStatements ) { } public Name convert ( TypeReference typeReference ) { } public SimpleName convert ( SingleNameReference nameReference ) { } public Name convert ( QualifiedNameReference nameReference ) { } private QualifiedName setQualifiedNameNameAndSourceRanges ( char [ ] [ ] typeName , long [ ] positions , AstNode node ) { } public Expression convert ( ThisReference reference ) { } public ThisExpression convert ( QualifiedThisReference reference ) { } public Name convert ( QualifiedSuperReference reference ) { } public ArrayAccess convert ( ArrayReference reference ) { } public Expression convert ( FieldReference reference ) { } public Expression convert ( Reference reference ) { } public Name convert ( NameReference reference ) { } public TypeDeclaration convert ( MemberTypeDeclaration typeDeclaration ) { } private void completeRecord ( ArrayType arrayType , AstNode astNode ) { } public Type convertType ( TypeReference typeReference ) { } public MethodDeclaration convert ( AbstractMethodDeclaration methodDeclaration ) { } public Expression convert ( org . eclipse . jdt . internal . compiler . ast . Expression expression ) { } public ParenthesizedExpression convertToParenthesizedExpression ( org . eclipse . jdt . internal . compiler . ast . Expression expression ) { } public ClassInstanceCreation convert ( AllocationExpression expression ) { } public ClassInstanceCreation convert ( AnonymousLocalTypeDeclaration expression ) { ClassInstanceCreation classInstanceCreation = this . ast . newClassInstanceCreation ( ) ; classInstanceCreation . setName ( convert ( expression . allocation . type ) ) ; if ( ( expression . allocation . enclosingInstance ) != null ) { classInstanceCreation . setExpression ( convert ( expression . allocation . enclosingInstance ) ) ; } int declarationSourceStart = expression . allocation . sourceStart ; classInstanceCreation . setSourceRange ( declarationSourceStart , ( ( ( expression . bodyEnd ) - declarationSourceStart ) + 1 ) ) ; org . eclipse . jdt . internal . compiler . ast . Expression [ ] arguments = expression . allocation . arguments ; if ( arguments != null ) { int length = arguments . length ; for ( int i = 0 ; i < length ; i ++ ) { classInstanceCreation . arguments ( ) . add ( convert ( arguments [ i ] ) ) ; } } AnonymousClassDeclaration anonymousClassDeclaration = this . ast . newAnonymousClassDeclaration ( ) ; int start = retrieveStartBlockPosition ( declarationSourceStart , expression . bodyEnd ) ; anonymousClassDeclaration . setSourceRange ( start , ( ( ( expression . bodyEnd ) - start ) + 1 ) ) ; classInstanceCreation . setAnonymousClassDeclaration ( anonymousClassDeclaration ) ; buildBodyDeclarations ( expression , anonymousClassDeclaration ) ; if ( this . resolveBindings ) { recordNodes ( classInstanceCreation , expression ) ; recordNodes ( anonymousClassDeclaration , expression ) ; <START_BUG> classInstanceCreation . resolveTypeBinding ( ) ; <END_BUG> } return classInstanceCreation ; } private void buildBodyDeclarations ( AnonymousLocalTypeDeclaration expression , AnonymousClassDeclaration anonymousClassDeclaration ) { } public ArrayCreation convert ( ArrayAllocationExpression expression ) { } public SingleVariableDeclaration convert ( Argument argument ) { } public ArrayInitializer convert ( org . eclipse . jdt . internal . compiler . ast . ArrayInitializer expression ) { } public Expression convert ( QualifiedAllocationExpression expression ) { } public Assignment convert ( org . eclipse . jdt . internal . compiler . ast . Assignment expression ) { } public Assignment convert ( CompoundAssignment expression ) { } public PrefixExpression convert ( org . eclipse . jdt . internal . compiler . ast . PrefixExpression expression ) { } public PostfixExpression convert ( org . eclipse . jdt . internal . compiler . ast . PostfixExpression expression ) { } public CastExpression convert ( org . eclipse . jdt . internal . compiler . ast . CastExpression expression ) { } public Type convertToType ( NameReference reference ) { } public Expression convert ( ClassLiteralAccess expression ) { } public BooleanLiteral convert ( FalseLiteral expression ) { } public BooleanLiteral convert ( TrueLiteral expression ) { } public NullLiteral convert ( org . eclipse . jdt . internal . compiler . ast . NullLiteral expression ) { } public CharacterLiteral convert ( CharLiteral expression ) { } public NumberLiteral convert ( DoubleLiteral expression ) { } public NumberLiteral convert ( FloatLiteral expression ) { } public NumberLiteral convert ( IntLiteral expression ) { } public NumberLiteral convert ( IntLiteralMinValue expression ) { } public NumberLiteral convert ( LongLiteral expression ) { } public NumberLiteral convert ( LongLiteralMinValue expression ) { } public StringLiteral convert ( org . eclipse . jdt . internal . compiler . ast . StringLiteral expression ) { } public StringLiteral convert ( ExtendedStringLiteral expression ) { } public Expression convert ( BinaryExpression expression ) { } public PrefixExpression convert ( UnaryExpression expression ) { } public InstanceofExpression convert ( InstanceOfExpression expression ) { } public ConditionalExpression convert ( org . eclipse . jdt . internal . compiler . ast . ConditionalExpression expression ) { } public Expression convert ( MessageSend expression ) { } public Expression convert ( AND_AND_Expression expression ) { } public Expression convert ( EqualExpression expression ) { }

Fix:
anonymousClassDeclaration . resolveBinding ( ) ;