Program: 68363
Project: 68363
Buggy source:
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);
  assertEquals(java.sql.Timestamp.class,value.getClass());
}

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.SDOXML_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);
  assertEquals(java.sql.Timestamp.class,value.getClass());
}