Program: 66401
Project: 66401
Buggy source:
protected ClassDescriptor buildHistoryPolicyDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(HistoryPolicy.class);
  descriptor.setDefaultRootElement("String_Node_Str");
  XMLCompositeCollectionMapping historyTablesMapping=new XMLCompositeCollectionMapping();
  historyTablesMapping.useCollectionClass(NonSynchronizedVector.class);
  historyTablesMapping.setAttributeName("String_Node_Str");
  historyTablesMapping.setReferenceClass(HistoricalDatabaseTable.class);
  historyTablesMapping.setGetMethodName("String_Node_Str");
  historyTablesMapping.setSetMethodName("String_Node_Str");
  historyTablesMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str" + getPrimaryNamespaceXPath()+ "String_Node_Str");
  descriptor.addMapping(historyTablesMapping);
  XMLCompositeCollectionMapping startFieldNamesMapping=new XMLCompositeCollectionMapping();
  startFieldNamesMapping.useCollectionClass(NonSynchronizedVector.class);
  startFieldNamesMapping.setAttributeName("String_Node_Str");
  startFieldNamesMapping.setReferenceClass(DatabaseField.class);
  startFieldNamesMapping.setGetMethodName("String_Node_Str");
  startFieldNamesMapping.setSetMethodName("String_Node_Str");
  startFieldNamesMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str" + getPrimaryNamespaceXPath()+ "String_Node_Str");
  descriptor.addMapping(startFieldNamesMapping);
  XMLCompositeCollectionMapping endFieldNamesMapping=new XMLCompositeCollectionMapping();
  endFieldNamesMapping.useCollectionClass(NonSynchronizedVector.class);
  endFieldNamesMapping.setAttributeName("String_Node_Str");
  endFieldNamesMapping.setReferenceClass(DatabaseField.class);
  endFieldNamesMapping.setGetMethodName("String_Node_Str");
  endFieldNamesMapping.setSetMethodName("String_Node_Str");
  endFieldNamesMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str" + getPrimaryNamespaceXPath()+ "String_Node_Str");
  descriptor.addMapping(endFieldNamesMapping);
  XMLDirectMapping shouldHandleWritesMapping=new XMLDirectMapping();
  shouldHandleWritesMapping.setAttributeName("String_Node_Str");
  shouldHandleWritesMapping.setGetMethodName("String_Node_Str");
  shouldHandleWritesMapping.setSetMethodName("String_Node_Str");
  shouldHandleWritesMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  shouldHandleWritesMapping.setNullValue(Boolean.TRUE);
  descriptor.addMapping(shouldHandleWritesMapping);
  XMLDirectMapping useDatabaseTimeMapping=new XMLDirectMapping();
  useDatabaseTimeMapping.setAttributeName("String_Node_Str");
  useDatabaseTimeMapping.setGetMethodName("String_Node_Str");
  useDatabaseTimeMapping.setSetMethodName("String_Node_Str");
  useDatabaseTimeMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  useDatabaseTimeMapping.setNullValue(Boolean.FALSE);
  descriptor.addMapping(useDatabaseTimeMapping);
  return descriptor;
}

Fixed version (ground truth):
protected ClassDescriptor buildHistoryPolicyDescriptor(){
  XMLDescriptor descriptor=new XMLDescriptor();
  descriptor.setJavaClass(HistoryPolicy.class);
  descriptor.setDefaultRootElement("String_Node_Str");
  XMLCompositeCollectionMapping historyTablesMapping=new XMLCompositeCollectionMapping();
  historyTablesMapping.useCollectionClass(NonSynchronizedVector.class);
  historyTablesMapping.setAttributeName("String_Node_Str");
  historyTablesMapping.setReferenceClass(HistoricalDatabaseTable.class);
  historyTablesMapping.setGetMethodName("String_Node_Str");
  historyTablesMapping.setSetMethodName("String_Node_Str");
  historyTablesMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str" + getPrimaryNamespaceXPath()+ "String_Node_Str");
  descriptor.addMapping(historyTablesMapping);
  XMLCompositeCollectionMapping startFieldNamesMapping=new XMLCompositeCollectionMapping();
  startFieldNamesMapping.useCollectionClass(NonSynchronizedVector.class);
  startFieldNamesMapping.setAttributeName("String_Node_Str");
  startFieldNamesMapping.setReferenceClass(DatabaseField.class);
  startFieldNamesMapping.setGetMethodName("String_Node_Str");
  startFieldNamesMapping.setSetMethodName("String_Node_Str");
  startFieldNamesMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str" + getPrimaryNamespaceXPath()+ "String_Node_Str");
  ((XMLField)startFieldNamesMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(startFieldNamesMapping);
  XMLCompositeCollectionMapping endFieldNamesMapping=new XMLCompositeCollectionMapping();
  endFieldNamesMapping.useCollectionClass(NonSynchronizedVector.class);
  endFieldNamesMapping.setAttributeName("String_Node_Str");
  endFieldNamesMapping.setReferenceClass(DatabaseField.class);
  endFieldNamesMapping.setGetMethodName("String_Node_Str");
  endFieldNamesMapping.setSetMethodName("String_Node_Str");
  endFieldNamesMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str" + getPrimaryNamespaceXPath()+ "String_Node_Str");
  ((XMLField)endFieldNamesMapping.getField()).setLeafElementType(fieldQname);
  descriptor.addMapping(endFieldNamesMapping);
  XMLDirectMapping shouldHandleWritesMapping=new XMLDirectMapping();
  shouldHandleWritesMapping.setAttributeName("String_Node_Str");
  shouldHandleWritesMapping.setGetMethodName("String_Node_Str");
  shouldHandleWritesMapping.setSetMethodName("String_Node_Str");
  shouldHandleWritesMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  shouldHandleWritesMapping.setNullValue(Boolean.TRUE);
  descriptor.addMapping(shouldHandleWritesMapping);
  XMLDirectMapping useDatabaseTimeMapping=new XMLDirectMapping();
  useDatabaseTimeMapping.setAttributeName("String_Node_Str");
  useDatabaseTimeMapping.setGetMethodName("String_Node_Str");
  useDatabaseTimeMapping.setSetMethodName("String_Node_Str");
  useDatabaseTimeMapping.setXPath(getPrimaryNamespaceXPath() + "String_Node_Str");
  useDatabaseTimeMapping.setNullValue(Boolean.FALSE);
  descriptor.addMapping(useDatabaseTimeMapping);
  return descriptor;
}