Program: 104893
Project: 104893
Buggy source:
/** 
 * constructor 
 */
public MappedClass(Class clazz,Mapper mapr){
  this.mapr=mapr;
  this.clazz=clazz;
  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(),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);
    if (field.isAnnotationPresent(Id.class)) {
      idField=field;
      MappedField mf=new MappedField(idField);
      persistenceFields.add(mf);
    }
 else     if (field.isAnnotationPresent(Transient.class) || (mapr.getOptions().actLikeSerializer && ((field.getModifiers() & Modifier.TRANSIENT) == Modifier.TRANSIENT))) {
      continue;
    }
 else     if (mapr.getOptions().ignoreFinals && ((field.getModifiers() & Modifier.FINAL) == Modifier.FINAL)) {
      continue;
    }
 else     if (field.isAnnotationPresent(Property.class) || field.isAnnotationPresent(Reference.class) || field.isAnnotationPresent(Embedded.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):
/** 
 * constructor 
 */
public MappedClass(Class clazz,Mapper mapr){
  this.mapr=mapr;
  this.clazz=clazz;
  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(),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)|| 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");
    }
  }
}