Buggy code:
public class BinaryType extends BinaryMember implements IType , SuffixConstants { private static final IField [ ] NO_FIELDS = new IField [ 0 ] ; private static final IMethod [ ] NO_METHODS = new IMethod [ 0 ] ; private static final IType [ ] NO_TYPES = new IType [ 0 ] ; private static final IInitializer [ ] NO_INITIALIZERS = new IInitializer [ 0 ] ; public static final String EMPTY_JAVADOC = Util . EMPTY_STRING ; protected BinaryType ( JavaElement parent , String name ) { } protected void closing ( Object info ) throws JavaModelException { } public void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , ICompletionRequestor requestor ) throws JavaModelException { } public void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , ICompletionRequestor requestor , WorkingCopyOwner owner ) throws JavaModelException { } public void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , CompletionRequestor requestor ) throws JavaModelException { } public void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , CompletionRequestor requestor , IProgressMonitor monitor ) throws JavaModelException { } public void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , CompletionRequestor requestor , WorkingCopyOwner owner ) throws JavaModelException { } public void codeComplete ( char [ ] snippet , int insertion , int position , char [ ] [ ] localVariableTypeNames , char [ ] [ ] localVariableNames , int [ ] localVariableModifiers , boolean isStatic , CompletionRequestor requestor , WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException { } public IField createField ( String contents , IJavaElement sibling , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public IInitializer createInitializer ( String contents , IJavaElement sibling , IProgressMonitor monitor ) throws JavaModelException { } public IMethod createMethod ( String contents , IJavaElement sibling , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public IType createType ( String contents , IJavaElement sibling , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public boolean equals ( Object o ) { } public IMethod [ ] findMethods ( IMethod method ) { } public IAnnotation [ ] getAnnotations ( ) throws JavaModelException { IBinaryType info = ( ( IBinaryType ) ( getElementInfo ( ) ) ) ; IBinaryAnnotation [ ] binaryAnnotations = info . getAnnotations ( ) ; <START_BUG> return getAnnotations ( binaryAnnotations ) ; <END_BUG> } public IJavaElement [ ] getChildren ( ) throws JavaModelException { } public IJavaElement [ ] getChildrenForCategory ( String category ) throws JavaModelException { } protected ClassFileInfo getClassFileInfo ( ) throws JavaModelException { } public IType getDeclaringType ( ) { } public Object getElementInfo ( IProgressMonitor monitor ) throws JavaModelException { } public int getElementType ( ) { } public IField getField ( String fieldName ) { } public IField [ ] getFields ( ) throws JavaModelException { } public int getFlags ( ) throws JavaModelException { } public String getFullyQualifiedName ( ) { } public String getFullyQualifiedName ( char enclosingTypeSeparator ) { } public String getFullyQualifiedParameterizedName ( ) throws JavaModelException { } public IJavaElement getHandleFromMemento ( String token , MementoTokenizer memento , WorkingCopyOwner workingCopyOwner ) { } public IInitializer getInitializer ( int count ) { } public IInitializer [ ] getInitializers ( ) { } public String getKey ( boolean forceOpen ) throws JavaModelException { } public IMethod getMethod ( String selector , String [ ] parameterTypeSignatures ) { } public IMethod [ ] getMethods ( ) throws JavaModelException { } public IPackageFragment getPackageFragment ( ) { } public String getSuperclassTypeSignature ( ) throws JavaModelException { } public String getSourceFileName ( IBinaryType info ) { } public String getSuperclassName ( ) throws JavaModelException { } public String [ ] getSuperInterfaceNames ( ) throws JavaModelException { } public String [ ] getSuperInterfaceTypeSignatures ( ) throws JavaModelException { } public ITypeParameter [ ] getTypeParameters ( ) throws JavaModelException { } public String [ ] getTypeParameterSignatures ( ) throws JavaModelException { } public IType getType ( String typeName ) { } public ITypeParameter getTypeParameter ( String typeParameterName ) { } public String getTypeQualifiedName ( ) { } public String getTypeQualifiedName ( char enclosingTypeSeparator ) { } public IType [ ] getTypes ( ) throws JavaModelException { } public boolean isAnonymous ( ) throws JavaModelException { } public boolean isClass ( ) throws JavaModelException { } public boolean isEnum ( ) throws JavaModelException { } public boolean isInterface ( ) throws JavaModelException { } public boolean isAnnotation ( ) throws JavaModelException { } public boolean isLocal ( ) throws JavaModelException { } public boolean isMember ( ) throws JavaModelException { } public boolean isResolved ( ) { } public ITypeHierarchy loadTypeHierachy ( InputStream input , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy loadTypeHierachy ( InputStream input , WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newSupertypeHierarchy ( IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newSupertypeHierarchy ( ICompilationUnit [ ] workingCopies , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newSupertypeHierarchy ( IWorkingCopy [ ] workingCopies , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newSupertypeHierarchy ( WorkingCopyOwner owner , IProgressMonitor monitor ) throws JavaModelException { } public ITypeHierarchy newTypeHierarchy ( IJavaProject project , IProgressMonitor monitor ) throws JavaModelException { }

Fix:
return getAnnotations ( binaryAnnotations , info . getTagBits ( ) ) ;