Buggy code:
class TypeBinding implements ITypeBinding { private static final IMethodBinding [ ] NO_METHOD_BINDINGS = new IMethodBinding [ 0 ] ; private static final String NO_NAME = "" ; private static final ITypeBinding [ ] NO_TYPE_BINDINGS = new ITypeBinding [ 0 ] ; private static final IVariableBinding [ ] NO_VARIABLE_BINDINGS = new IVariableBinding [ 0 ] ; private static final int VALID_MODIFIERS = ( ( ( ( ( ( Modifier . PUBLIC ) | ( Modifier . PROTECTED ) ) | ( Modifier . PRIVATE ) ) | ( Modifier . ABSTRACT ) ) | ( Modifier . STATIC ) ) | ( Modifier . FINAL ) ) | ( Modifier . STRICTFP ) ; private org . eclipse . jdt . internal . compiler . lookup . TypeBinding binding ; private String key ; private BindingResolver resolver ; public TypeBinding ( BindingResolver resolver , org . eclipse . jdt . internal . compiler . lookup . TypeBinding binding ) { } public String getBinaryName ( ) { } public ITypeBinding getBound ( ) { } private IClassFile getClassFile ( char [ ] fileName ) { } private ICompilationUnit getCompilationUnit ( char [ ] fileName ) { } public IVariableBinding [ ] getDeclaredFields ( ) { } public IMethodBinding [ ] getDeclaredMethods ( ) { try { <START_BUG> if ( ( ( isClass ( ) ) || ( isInterface ( ) ) ) || ( isEnum ( ) ) ) { <END_BUG> ReferenceBinding referenceBinding = ( ( ReferenceBinding ) ( this . binding ) ) ; MethodBinding [ ] methods = referenceBinding . methods ( ) ; int length = methods . length ; int removeSyntheticsCounter = 0 ; IMethodBinding [ ] newMethods = new IMethodBinding [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { MethodBinding methodBinding = methods [ i ] ; if ( ! ( shouldBeRemoved ( methodBinding ) ) ) { newMethods [ ( removeSyntheticsCounter ++ ) ] = this . resolver . getMethodBinding ( methodBinding ) ; } } if ( removeSyntheticsCounter != length ) { System . arraycopy ( newMethods , 0 , ( newMethods = new IMethodBinding [ removeSyntheticsCounter ] ) , 0 , removeSyntheticsCounter ) ; } return newMethods ; } } catch ( RuntimeException e ) { } return TypeBinding . NO_METHOD_BINDINGS ; } public int getDeclaredModifiers ( ) { } public ITypeBinding [ ] getDeclaredTypes ( ) { } public ITypeBinding getDeclaringClass ( ) { } public int getDimensions ( ) { } public ITypeBinding getElementType ( ) { } public ITypeBinding getTypeDeclaration ( ) { } public ITypeBinding getErasure ( ) { } public ITypeBinding getGenericType ( ) { } public ITypeBinding [ ] getInterfaces ( ) { } public IJavaElement getJavaElement ( ) { } public String getKey ( ) { } public int getKind ( ) { } public int getModifiers ( ) { } public String getName ( ) { } public IPackageBinding getPackage ( ) { } private IPackageFragment getPackageFragment ( char [ ] fileName , int lastSlash ) { } public String getQualifiedName ( ) { } public ITypeBinding getSuperclass ( ) { } public ITypeBinding [ ] getTypeArguments ( ) { } public ITypeBinding [ ] getTypeBounds ( ) { } public ITypeBinding [ ] getTypeParameters ( ) { } public boolean isGenericType ( ) { } public boolean isAnnotation ( ) { } public boolean isAnonymous ( ) { } public boolean isArray ( ) { } public boolean isAssignmentCompatible ( ITypeBinding type ) { } public boolean isCastCompatible ( ITypeBinding type ) { } public boolean isClass ( ) { } public boolean isDeprecated ( ) { } public boolean isEnum ( ) { } public boolean isEqualTo ( IBinding other ) { } public boolean isFromSource ( ) { } public boolean isInterface ( ) { } public boolean isLocal ( ) { } public boolean isMember ( ) { } public boolean isNested ( ) { } public boolean isNullType ( ) { } public boolean isParameterizedType ( ) { } public boolean isPrimitive ( ) { } public boolean isRawType ( ) { } public boolean isSubTypeCompatible ( ITypeBinding type ) { } public boolean isSynthetic ( ) { } public boolean isTopLevel ( ) { } public boolean isTypeVariable ( ) { } public boolean isUpperbound ( ) { } public boolean isWildcardType ( ) { } private boolean shouldBeRemoved ( MethodBinding methodBinding ) { } public String toString ( ) { } }

Fix:
if ( ( ( ( isClass ( ) ) || ( isInterface ( ) ) ) || ( isEnum ( ) ) ) || ( isAnnotation ( ) ) ) {