Program: 68585
Project: 68585
Buggy source:
public void testDataTypeAnnotation() throws Exception {
  DataObject timestampSTDo=dataFactory.create("String_Node_Str","String_Node_Str");
  timestampSTDo.set("String_Node_Str","String_Node_Str");
  timestampSTDo.set("String_Node_Str","String_Node_Str");
  timestampSTDo.set("String_Node_Str",true);
  timestampSTDo.set(SDOConstants.JAVA_CLASS_PROPERTY,"String_Node_Str");
  Type timeStampType=typeHelper.define(timestampSTDo);
  DataObject rootTypeDO=dataFactory.create("String_Node_Str","String_Node_Str");
  rootTypeDO.set("String_Node_Str","String_Node_Str");
  rootTypeDO.set("String_Node_Str","String_Node_Str");
  rootTypeDO.set("String_Node_Str",false);
  DataObject rootPropDO=rootTypeDO.createDataObject("String_Node_Str");
  rootPropDO.set("String_Node_Str","String_Node_Str");
  rootPropDO.set("String_Node_Str",SDOConstants.SDO_DATETIME);
  rootPropDO.set(SDOConstants.XMLDATATYPE_PROPERTY,timeStampType);
  rootPropDO.set(SDOConstants.XMLELEMENT_PROPERTY,true);
  Type rootType=typeHelper.define(rootTypeDO);
  DataObject propDO=dataFactory.create(SDOConstants.SDO_PROPERTY);
  propDO.set("String_Node_Str","String_Node_Str");
  propDO.set("String_Node_Str",rootType);
  typeHelper.defineOpenContentProperty("String_Node_Str",propDO);
  FileInputStream xmlFile=new FileInputStream(getXmlFileNameToLoad());
  XMLDocument document=xmlHelper.load(xmlFile);
  DataObject root=document.getRootObject();
  Object value=root.get("String_Node_Str");
  assertNotNull(value);
  assertTrue(value instanceof Timestamp);
}

Fixed version (ground truth):
public void testDataTypeAnnotation() throws Exception {
  SDOType propertyType=(SDOType)typeHelper.getType(SDOConstants.SDO_URL,SDOConstants.PROPERTY);
  DataObject timestampSTDo=dataFactory.create("String_Node_Str","String_Node_Str");
  timestampSTDo.set("String_Node_Str","String_Node_Str");
  timestampSTDo.set("String_Node_Str","String_Node_Str");
  timestampSTDo.set("String_Node_Str",true);
  timestampSTDo.set(SDOConstants.JAVA_CLASS_PROPERTY,"String_Node_Str");
  Type timeStampType=typeHelper.define(timestampSTDo);
  DataObject rootTypeDO=dataFactory.create("String_Node_Str","String_Node_Str");
  rootTypeDO.set("String_Node_Str","String_Node_Str");
  rootTypeDO.set("String_Node_Str","String_Node_Str");
  rootTypeDO.set("String_Node_Str",false);
  DataObject rootPropDO=rootTypeDO.createDataObject("String_Node_Str");
  rootPropDO.set("String_Node_Str","String_Node_Str");
  rootPropDO.set("String_Node_Str",SDOConstants.SDO_DATETIME);
  Property xmlDataTypeProperty=typeHelper.getOpenContentProperty(SDOConstants.ORACLE_SDO_URL,SDOConstants.SDOXML_DATATYPE);
  rootPropDO.set(xmlDataTypeProperty,timeStampType);
  rootPropDO.set(SDOConstants.XMLELEMENT_PROPERTY,true);
  Type rootType=typeHelper.define(rootTypeDO);
  DataObject propDO=dataFactory.create(propertyType);
  propDO.set("String_Node_Str","String_Node_Str");
  propDO.set("String_Node_Str",rootType);
  typeHelper.defineOpenContentProperty("String_Node_Str",propDO);
  FileInputStream xmlFile=new FileInputStream(getXmlFileNameToLoad());
  XMLDocument document=xmlHelper.load(xmlFile);
  DataObject root=document.getRootObject();
  Object value=root.get("String_Node_Str");
  assertNotNull(value);
  assertTrue(value instanceof Timestamp);
}