Program: 104842
Project: 104842
Buggy source:
/** 
 * Discovers interesting (that we care about) things about the class. 
 */
protected void discover(){
  for (  Class<? extends Annotation> c : interestingAnnotations) {
    addAnnotation(c);
  }
  Class<?> type=clazz;
  try {
    ctor=type.getDeclaredConstructor();
    ctor.setAccessible(true);
  }
 catch (  NoSuchMethodException e) {
    throw new MappingException("String_Node_Str" + type.getName() + "String_Node_Str",e);
  }
  List<Class<?>> lifecycleClasses=new ArrayList<Class<?>>();
  lifecycleClasses.add(clazz);
  EntityListeners entityLisAnn=(EntityListeners)releventAnnotations.get(EntityListeners.class);
  if (entityLisAnn != null && entityLisAnn.value() != null && entityLisAnn.value().length != 0)   for (  Class<?> c : entityLisAnn.value())   lifecycleClasses.add(c);
  Class<? extends Annotation>[] lifecycleAnnotations=new Class[]{PrePersist.class,PreSave.class,PostPersist.class,PreLoad.class,PostLoad.class};
  for (  Class<?> cls : lifecycleClasses) {
    for (    Method m : ReflectionUtils.getDeclaredAndInheritedMethods(cls)) {
      for (      Class<? extends Annotation> c : lifecycleAnnotations) {
        if (m.isAnnotationPresent(c)) {
          addLifecycleEventMethod(c,m,cls.equals(clazz) ? null : cls);
        }
      }
    }
  }
  embeddedAn=(Embedded)releventAnnotations.get(Embedded.class);
  entityAn=(Entity)releventAnnotations.get(Entity.class);
  collName=(entityAn == null || entityAn.value().equals(Mapper.IGNORED_FIELDNAME)) ? clazz.getSimpleName() : entityAn.value();
  for (  Field field : ReflectionUtils.getDeclaredAndInheritedFields(clazz,true)) {
    field.setAccessible(true);
    int fieldMods=field.getModifiers();
    if (field.isAnnotationPresent(Transient.class))     continue;
 else     if (field.isSynthetic() && (fieldMods & Modifier.TRANSIENT) == Modifier.TRANSIENT)     continue;
 else     if (mapr.getOptions().actLikeSerializer && ((fieldMods & Modifier.TRANSIENT) == Modifier.TRANSIENT))     continue;
 else     if (mapr.getOptions().ignoreFinals && ((fieldMods & Modifier.FINAL) == Modifier.FINAL))     continue;
 else     if (field.isAnnotationPresent(Id.class)) {
      idField=field;
      MappedField mf=new MappedField(idField);
      persistenceFields.add(mf);
    }
 else     if (field.isAnnotationPresent(Property.class) || field.isAnnotationPresent(Reference.class) || field.isAnnotationPresent(Embedded.class)|| field.isAnnotationPresent(Serialized.class)|| isSupportedType(field.getType())|| ReflectionUtils.implementsInterface(field.getType(),Serializable.class)) {
      persistenceFields.add(new MappedField(field));
    }
 else {
      if (mapr.getOptions().defaultFieldAnnotation != null)       persistenceFields.add(new MappedField(field));
 else       log.warning("String_Node_Str" + clazz.getName() + "String_Node_Str"+ field.getName()+ "String_Node_Str"+ field.getType().getName()+ "String_Node_Str");
    }
  }
}

Fixed version (ground truth):
/** 
 * Discovers interesting (that we care about) things about the class. 
 */
protected void discover(){
  for (  Class<? extends Annotation> c : interestingAnnotations) {
    addAnnotation(c);
  }
  Class<?> type=clazz;
  try {
    ctor=type.getDeclaredConstructor();
    ctor.setAccessible(true);
  }
 catch (  NoSuchMethodException e) {
    throw new MappingException("String_Node_Str" + type.getName() + "String_Node_Str",e);
  }
  List<Class<?>> lifecycleClasses=new ArrayList<Class<?>>();
  lifecycleClasses.add(clazz);
  EntityListeners entityLisAnn=(EntityListeners)releventAnnotations.get(EntityListeners.class);
  if (entityLisAnn != null && entityLisAnn.value() != null && entityLisAnn.value().length != 0)   for (  Class<?> c : entityLisAnn.value())   lifecycleClasses.add(c);
  Class<? extends Annotation>[] lifecycleAnnotations=new Class[]{PrePersist.class,PreSave.class,PostPersist.class,PreLoad.class,PostLoad.class};
  for (  Class<?> cls : lifecycleClasses) {
    for (    Method m : ReflectionUtils.getDeclaredAndInheritedMethods(cls)) {
      for (      Class<? extends Annotation> c : lifecycleAnnotations) {
        if (m.isAnnotationPresent(c)) {
          addLifecycleEventMethod(c,m,cls.equals(clazz) ? null : cls);
        }
      }
    }
  }
  embeddedAn=(Embedded)releventAnnotations.get(Embedded.class);
  entityAn=(Entity)releventAnnotations.get(Entity.class);
  collName=(entityAn == null || entityAn.value().equals(Mapper.IGNORED_FIELDNAME)) ? clazz.getSimpleName() : entityAn.value();
  for (  Field field : ReflectionUtils.getDeclaredAndInheritedFields(clazz,true)) {
    field.setAccessible(true);
    int fieldMods=field.getModifiers();
    if (field.isAnnotationPresent(Transient.class))     continue;
 else     if (field.isSynthetic() && (fieldMods & Modifier.TRANSIENT) == Modifier.TRANSIENT)     continue;
 else     if (mapr.getOptions().actLikeSerializer && ((fieldMods & Modifier.TRANSIENT) == Modifier.TRANSIENT))     continue;
 else     if (mapr.getOptions().ignoreFinals && ((fieldMods & Modifier.FINAL) == Modifier.FINAL))     continue;
 else     if (field.isAnnotationPresent(Id.class)) {
      idField=field;
      MappedField mf=new MappedField(idField);
      persistenceFields.add(mf);
    }
 else     if (field.isAnnotationPresent(Property.class) || field.isAnnotationPresent(Reference.class) || field.isAnnotationPresent(Embedded.class)|| field.isAnnotationPresent(Serialized.class)|| isSupportedType(field.getType())|| ReflectionUtils.implementsInterface(field.getType(),Serializable.class)) {
      persistenceFields.add(new MappedField(field));
    }
 else {
      if (mapr.getOptions().defaultMapper != null)       persistenceFields.add(new MappedField(field));
 else       log.warning("String_Node_Str" + clazz.getName() + "String_Node_Str"+ field.getName()+ "String_Node_Str"+ field.getType().getName()+ "String_Node_Str");
    }
  }
}