Program: 68371
Project: 68371
Buggy source:
public List getTypesToGenerateFrom(){
  SDOType dataObjectType=(SDOType)typeHelper.getType(SDOConstants.SDO_URL,SDOConstants.DATAOBJECT);
  SDOProperty xmlDataTypeProperty=(SDOProperty)typeHelper.getOpenContentProperty(SDOConstants.ORACLE_SDO_URL,SDOConstants.SDOXML_DATATYPE);
  List types=new ArrayList();
  String uri=getControlUri();
  Type stringType=typeHelper.getType("String_Node_Str","String_Node_Str");
  Type intType=typeHelper.getType("String_Node_Str","String_Node_Str");
  Type dateType=typeHelper.getType("String_Node_Str","String_Node_Str");
  Type decimalType=typeHelper.getType("String_Node_Str","String_Node_Str");
  String javaPackage="String_Node_Str";
  SDOType gregorianDateType=new SDODataType(uri,"String_Node_Str",(SDOTypeHelper)typeHelper);
  gregorianDateType.setInstanceProperty(SDOConstants.JAVA_CLASS_PROPERTY,"String_Node_Str");
  List aliasNames=new ArrayList();
  aliasNames.add("String_Node_Str");
  gregorianDateType.setAliasNames(aliasNames);
  SDOType USaddrType=new SDOType(uri,"String_Node_Str");
  USaddrType.setDataType(false);
  SDOProperty addrNameProp=new SDOProperty(aHelperContext);
  addrNameProp.setXsd(true);
  addrNameProp.setXsdLocalName("String_Node_Str");
  addrNameProp.setName("String_Node_Str");
  addrNameProp.setType(stringType);
  addrNameProp.setContainingType(USaddrType);
  USaddrType.getDeclaredProperties().add(addrNameProp);
  SDOProperty streetProp=new SDOProperty(aHelperContext);
  streetProp.setName("String_Node_Str");
  streetProp.setXsd(true);
  streetProp.setXsdLocalName("String_Node_Str");
  streetProp.setType(stringType);
  streetProp.setContainingType(USaddrType);
  USaddrType.getDeclaredProperties().add(streetProp);
  SDOProperty cityProp=new SDOProperty(aHelperContext);
  cityProp.setName("String_Node_Str");
  cityProp.setXsdLocalName("String_Node_Str");
  cityProp.setXsd(true);
  cityProp.setType(stringType);
  cityProp.setContainingType(USaddrType);
  USaddrType.getDeclaredProperties().add(cityProp);
  SDOProperty stateProp=new SDOProperty(aHelperContext);
  stateProp.setName("String_Node_Str");
  stateProp.setXsd(true);
  stateProp.setXsdLocalName("String_Node_Str");
  stateProp.setType(stringType);
  stateProp.setContainingType(USaddrType);
  USaddrType.getDeclaredProperties().add(stateProp);
  SDOProperty zipProp=new SDOProperty(aHelperContext);
  zipProp.setXsd(true);
  zipProp.setName("String_Node_Str");
  zipProp.setXsdLocalName("String_Node_Str");
  zipProp.setType(decimalType);
  zipProp.setContainingType(USaddrType);
  USaddrType.getDeclaredProperties().add(zipProp);
  SDOProperty countryProp=new SDOProperty(aHelperContext);
  countryProp.setXsd(true);
  countryProp.setName("String_Node_Str");
  countryProp.setXsdLocalName("String_Node_Str");
  countryProp.setType(stringType);
  countryProp.setDefault("String_Node_Str");
  countryProp.setContainingType(USaddrType);
  USaddrType.getDeclaredProperties().add(countryProp);
  SDOType quantityType=new SDODataType(uri,"String_Node_Str",(SDOTypeHelper)typeHelper);
  quantityType.setXsdType(SDOConstants.ANY_TYPE_QNAME);
  quantityType.getBaseTypes().add(intType);
  quantityType.setInstanceClassName("String_Node_Str");
  SDOType SKUType=new SDODataType(uri,"String_Node_Str",(SDOTypeHelper)typeHelper);
  SKUType.setXsd(true);
  SKUType.setXsdLocalName("String_Node_Str");
  SKUType.setInstanceClassName("String_Node_Str");
  SKUType.setInstanceProperty(SDOConstants.JAVA_CLASS_PROPERTY,"String_Node_Str");
  SDOType itemType=new SDOType(uri,"String_Node_Str");
  itemType.setDataType(false);
  itemType.setInstanceClassName(javaPackage + "String_Node_Str" + "String_Node_Str");
  itemType.setXsdLocalName("String_Node_Str");
  SDOProperty productNameProp=new SDOProperty(aHelperContext);
  productNameProp.setXsd(true);
  productNameProp.setName("String_Node_Str");
  productNameProp.setXsdLocalName("String_Node_Str");
  productNameProp.setType(stringType);
  productNameProp.setReadOnly(true);
  productNameProp.setContainingType(itemType);
  itemType.getDeclaredProperties().add(productNameProp);
  SDOProperty pOrderProp=new SDOProperty(aHelperContext);
  pOrderProp.setXsd(true);
  pOrderProp.setName("String_Node_Str");
  pOrderProp.setXsdLocalName("String_Node_Str");
  pOrderProp.setType(stringType);
  pOrderProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY,Boolean.TRUE);
  pOrderProp.setMany(false);
  pOrderProp.setContainment(true);
  pOrderProp.setContainingType(itemType);
  itemType.getDeclaredProperties().add(pOrderProp);
  SDOProperty quantityProp=new SDOProperty(aHelperContext);
  quantityProp.setXsd(true);
  quantityProp.setName("String_Node_Str");
  quantityProp.setXsdLocalName("String_Node_Str");
  quantityProp.setContainingType(itemType);
  quantityProp.setInstanceProperty(xmlDataTypeProperty,SDOConstants.SDO_INTEGER);
  quantityProp.setType(SDOConstants.SDO_INTEGER);
  itemType.getDeclaredProperties().add(quantityProp);
  SDOProperty partNumProp=new SDOProperty(aHelperContext);
  partNumProp.setXsd(true);
  partNumProp.setName("String_Node_Str");
  partNumProp.setXsdLocalName("String_Node_Str");
  partNumProp.setType(SKUType);
  partNumProp.setContainingType(itemType);
  itemType.getDeclaredProperties().add(partNumProp);
  SDOProperty USPriceProp=new SDOProperty(aHelperContext);
  USPriceProp.setXsd(true);
  USPriceProp.setName("String_Node_Str");
  USPriceProp.setXsdLocalName("String_Node_Str");
  USPriceProp.setType(decimalType);
  USPriceProp.setContainingType(itemType);
  itemType.getDeclaredProperties().add(USPriceProp);
  SDOProperty itemCommentProp=new SDOProperty(aHelperContext);
  itemCommentProp.setXsd(true);
  itemCommentProp.setName("String_Node_Str");
  itemCommentProp.setXsdLocalName("String_Node_Str");
  itemCommentProp.setType(stringType);
  itemCommentProp.setContainment(false);
  List names=new ArrayList();
  names.add("String_Node_Str");
  itemCommentProp.setAliasNames(names);
  itemCommentProp.setContainingType(itemType);
  itemCommentProp.setContainment(false);
  itemType.getDeclaredProperties().add(itemCommentProp);
  SDOProperty shipDateProp=new SDOProperty(aHelperContext);
  shipDateProp.setXsd(true);
  shipDateProp.setName("String_Node_Str");
  shipDateProp.setXsdLocalName("String_Node_Str");
  shipDateProp.setType(SDOConstants.SDO_YEARMONTHDAY);
  shipDateProp.setContainment(false);
  shipDateProp.setContainingType(itemType);
  itemType.getDeclaredProperties().add(shipDateProp);
  SDOType itemsType=new SDOType(uri,"String_Node_Str");
  itemsType.setDataType(false);
  itemsType.setInstanceClassName(javaPackage + "String_Node_Str" + "String_Node_Str");
  SDOProperty itemProp=new SDOProperty(aHelperContext);
  itemProp.setXsd(true);
  itemProp.setName("String_Node_Str");
  itemProp.setXsdLocalName("String_Node_Str");
  itemProp.setContainment(true);
  itemProp.setMany(true);
  itemProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY,Boolean.TRUE);
  itemProp.setContainingType(itemsType);
  itemProp.setType(itemType);
  itemsType.getDeclaredProperties().add(itemProp);
  SDOType POtype=new SDOType(uri,"String_Node_Str");
  POtype.setDataType(false);
  POtype.setSequenced(true);
  names=new ArrayList();
  names.add("String_Node_Str");
  POtype.setAliasNames(names);
  POtype.setInstanceClassName(javaPackage + "String_Node_Str" + "String_Node_Str");
  SDOProperty shipToProp=new SDOProperty(aHelperContext);
  shipToProp.setXsd(true);
  shipToProp.setName("String_Node_Str");
  shipToProp.setMany(true);
  shipToProp.setXsdLocalName("String_Node_Str");
  shipToProp.setContainment(true);
  names=new ArrayList();
  names.add("String_Node_Str");
  shipToProp.setAliasNames(names);
  shipToProp.setMany(true);
  shipToProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY,Boolean.TRUE);
  shipToProp.setContainingType(POtype);
  shipToProp.setType(USaddrType);
  SDOProperty billToProp=new SDOProperty(aHelperContext);
  billToProp.setXsd(true);
  billToProp.setName("String_Node_Str");
  billToProp.setXsdLocalName("String_Node_Str");
  billToProp.setReadOnly(true);
  billToProp.setContainment(true);
  billToProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY,Boolean.TRUE);
  billToProp.setContainingType(POtype);
  billToProp.setType(USaddrType);
  SDOProperty itemsProp=new SDOProperty(aHelperContext);
  itemsProp.setXsd(true);
  itemsProp.setName("String_Node_Str");
  itemsProp.setXsdLocalName("String_Node_Str");
  itemsProp.setContainment(true);
  itemsProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY,Boolean.TRUE);
  itemsProp.setInstanceProperty(xmlDataTypeProperty,itemsType);
  itemsProp.setType(dataObjectType);
  itemsProp.setContainingType(POtype);
  SDOProperty commentProp=new SDOProperty(aHelperContext);
  commentProp.setXsd(true);
  commentProp.setName("String_Node_Str");
  commentProp.setXsdLocalName("String_Node_Str");
  commentProp.setType(stringType);
  commentProp.setContainingType(POtype);
  commentProp.setContainment(false);
  SDOProperty orderDateProp=new SDOProperty(aHelperContext);
  orderDateProp.setXsd(true);
  orderDateProp.setName("String_Node_Str");
  orderDateProp.setXsdLocalName("String_Node_Str");
  orderDateProp.setType(SDOConstants.SDO_YEARMONTHDAY);
  orderDateProp.setInstanceProperty(xmlDataTypeProperty,gregorianDateType);
  orderDateProp.setContainingType(POtype);
  orderDateProp.setContainment(false);
  SDOProperty topPriorityItemProp=new SDOProperty(aHelperContext);
  topPriorityItemProp.setXsd(true);
  topPriorityItemProp.setName("String_Node_Str");
  topPriorityItemProp.setXsdLocalName("String_Node_Str");
  topPriorityItemProp.setType(itemType);
  topPriorityItemProp.setMany(true);
  topPriorityItemProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY,Boolean.TRUE);
  topPriorityItemProp.setContainment(true);
  topPriorityItemProp.setContainingType(POtype);
  POtype.getDeclaredProperties().add(shipToProp);
  POtype.getDeclaredProperties().add(billToProp);
  POtype.getDeclaredProperties().add(itemsProp);
  POtype.getDeclaredProperties().add(commentProp);
  POtype.getDeclaredProperties().add(orderDateProp);
  POtype.getDeclaredProperties().add(topPriorityItemProp);
  types.add(USaddrType);
  types.add(gregorianDateType);
  types.add(POtype);
  types.add(itemsType);
  types.add(itemType);
  types.add(quantityType);
  types.add(SKUType);
  return types;
}

Fixed version (ground truth):
public List getTypesToGenerateFrom(){
  SDOType dataObjectType=(SDOType)typeHelper.getType(SDOConstants.SDO_URL,SDOConstants.DATAOBJECT);
  SDOProperty xmlDataTypeProperty=(SDOProperty)typeHelper.getOpenContentProperty(SDOConstants.SDOXML_URL,SDOConstants.SDOXML_DATATYPE);
  List types=new ArrayList();
  String uri=getControlUri();
  Type stringType=typeHelper.getType("String_Node_Str","String_Node_Str");
  Type intType=typeHelper.getType("String_Node_Str","String_Node_Str");
  Type dateType=typeHelper.getType("String_Node_Str","String_Node_Str");
  Type decimalType=typeHelper.getType("String_Node_Str","String_Node_Str");
  String javaPackage="String_Node_Str";
  SDOType gregorianDateType=new SDODataType(uri,"String_Node_Str",(SDOTypeHelper)typeHelper);
  gregorianDateType.setInstanceProperty(SDOConstants.JAVA_CLASS_PROPERTY,"String_Node_Str");
  List aliasNames=new ArrayList();
  aliasNames.add("String_Node_Str");
  gregorianDateType.setAliasNames(aliasNames);
  SDOType USaddrType=new SDOType(uri,"String_Node_Str");
  USaddrType.setDataType(false);
  SDOProperty addrNameProp=new SDOProperty(aHelperContext);
  addrNameProp.setXsd(true);
  addrNameProp.setXsdLocalName("String_Node_Str");
  addrNameProp.setName("String_Node_Str");
  addrNameProp.setType(stringType);
  addrNameProp.setContainingType(USaddrType);
  USaddrType.getDeclaredProperties().add(addrNameProp);
  SDOProperty streetProp=new SDOProperty(aHelperContext);
  streetProp.setName("String_Node_Str");
  streetProp.setXsd(true);
  streetProp.setXsdLocalName("String_Node_Str");
  streetProp.setType(stringType);
  streetProp.setContainingType(USaddrType);
  USaddrType.getDeclaredProperties().add(streetProp);
  SDOProperty cityProp=new SDOProperty(aHelperContext);
  cityProp.setName("String_Node_Str");
  cityProp.setXsdLocalName("String_Node_Str");
  cityProp.setXsd(true);
  cityProp.setType(stringType);
  cityProp.setContainingType(USaddrType);
  USaddrType.getDeclaredProperties().add(cityProp);
  SDOProperty stateProp=new SDOProperty(aHelperContext);
  stateProp.setName("String_Node_Str");
  stateProp.setXsd(true);
  stateProp.setXsdLocalName("String_Node_Str");
  stateProp.setType(stringType);
  stateProp.setContainingType(USaddrType);
  USaddrType.getDeclaredProperties().add(stateProp);
  SDOProperty zipProp=new SDOProperty(aHelperContext);
  zipProp.setXsd(true);
  zipProp.setName("String_Node_Str");
  zipProp.setXsdLocalName("String_Node_Str");
  zipProp.setType(decimalType);
  zipProp.setContainingType(USaddrType);
  USaddrType.getDeclaredProperties().add(zipProp);
  SDOProperty countryProp=new SDOProperty(aHelperContext);
  countryProp.setXsd(true);
  countryProp.setName("String_Node_Str");
  countryProp.setXsdLocalName("String_Node_Str");
  countryProp.setType(stringType);
  countryProp.setDefault("String_Node_Str");
  countryProp.setContainingType(USaddrType);
  USaddrType.getDeclaredProperties().add(countryProp);
  SDOType quantityType=new SDODataType(uri,"String_Node_Str",(SDOTypeHelper)typeHelper);
  quantityType.setXsdType(SDOConstants.ANY_TYPE_QNAME);
  quantityType.getBaseTypes().add(intType);
  quantityType.setInstanceClassName("String_Node_Str");
  SDOType SKUType=new SDODataType(uri,"String_Node_Str",(SDOTypeHelper)typeHelper);
  SKUType.setXsd(true);
  SKUType.setXsdLocalName("String_Node_Str");
  SKUType.setInstanceClassName("String_Node_Str");
  SKUType.setInstanceProperty(SDOConstants.JAVA_CLASS_PROPERTY,"String_Node_Str");
  SDOType itemType=new SDOType(uri,"String_Node_Str");
  itemType.setDataType(false);
  itemType.setInstanceClassName(javaPackage + "String_Node_Str" + "String_Node_Str");
  itemType.setXsdLocalName("String_Node_Str");
  SDOProperty productNameProp=new SDOProperty(aHelperContext);
  productNameProp.setXsd(true);
  productNameProp.setName("String_Node_Str");
  productNameProp.setXsdLocalName("String_Node_Str");
  productNameProp.setType(stringType);
  productNameProp.setReadOnly(true);
  productNameProp.setContainingType(itemType);
  itemType.getDeclaredProperties().add(productNameProp);
  SDOProperty pOrderProp=new SDOProperty(aHelperContext);
  pOrderProp.setXsd(true);
  pOrderProp.setName("String_Node_Str");
  pOrderProp.setXsdLocalName("String_Node_Str");
  pOrderProp.setType(stringType);
  pOrderProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY,Boolean.TRUE);
  pOrderProp.setMany(false);
  pOrderProp.setContainment(true);
  pOrderProp.setContainingType(itemType);
  itemType.getDeclaredProperties().add(pOrderProp);
  SDOProperty quantityProp=new SDOProperty(aHelperContext);
  quantityProp.setXsd(true);
  quantityProp.setName("String_Node_Str");
  quantityProp.setXsdLocalName("String_Node_Str");
  quantityProp.setContainingType(itemType);
  quantityProp.setInstanceProperty(xmlDataTypeProperty,SDOConstants.SDO_INTEGER);
  quantityProp.setType(SDOConstants.SDO_INTEGER);
  itemType.getDeclaredProperties().add(quantityProp);
  SDOProperty partNumProp=new SDOProperty(aHelperContext);
  partNumProp.setXsd(true);
  partNumProp.setName("String_Node_Str");
  partNumProp.setXsdLocalName("String_Node_Str");
  partNumProp.setType(SKUType);
  partNumProp.setContainingType(itemType);
  itemType.getDeclaredProperties().add(partNumProp);
  SDOProperty USPriceProp=new SDOProperty(aHelperContext);
  USPriceProp.setXsd(true);
  USPriceProp.setName("String_Node_Str");
  USPriceProp.setXsdLocalName("String_Node_Str");
  USPriceProp.setType(decimalType);
  USPriceProp.setContainingType(itemType);
  itemType.getDeclaredProperties().add(USPriceProp);
  SDOProperty itemCommentProp=new SDOProperty(aHelperContext);
  itemCommentProp.setXsd(true);
  itemCommentProp.setName("String_Node_Str");
  itemCommentProp.setXsdLocalName("String_Node_Str");
  itemCommentProp.setType(stringType);
  itemCommentProp.setContainment(false);
  List names=new ArrayList();
  names.add("String_Node_Str");
  itemCommentProp.setAliasNames(names);
  itemCommentProp.setContainingType(itemType);
  itemCommentProp.setContainment(false);
  itemType.getDeclaredProperties().add(itemCommentProp);
  SDOProperty shipDateProp=new SDOProperty(aHelperContext);
  shipDateProp.setXsd(true);
  shipDateProp.setName("String_Node_Str");
  shipDateProp.setXsdLocalName("String_Node_Str");
  shipDateProp.setType(SDOConstants.SDO_YEARMONTHDAY);
  shipDateProp.setContainment(false);
  shipDateProp.setContainingType(itemType);
  itemType.getDeclaredProperties().add(shipDateProp);
  SDOType itemsType=new SDOType(uri,"String_Node_Str");
  itemsType.setDataType(false);
  itemsType.setInstanceClassName(javaPackage + "String_Node_Str" + "String_Node_Str");
  SDOProperty itemProp=new SDOProperty(aHelperContext);
  itemProp.setXsd(true);
  itemProp.setName("String_Node_Str");
  itemProp.setXsdLocalName("String_Node_Str");
  itemProp.setContainment(true);
  itemProp.setMany(true);
  itemProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY,Boolean.TRUE);
  itemProp.setContainingType(itemsType);
  itemProp.setType(itemType);
  itemsType.getDeclaredProperties().add(itemProp);
  SDOType POtype=new SDOType(uri,"String_Node_Str");
  POtype.setDataType(false);
  POtype.setSequenced(true);
  names=new ArrayList();
  names.add("String_Node_Str");
  POtype.setAliasNames(names);
  POtype.setInstanceClassName(javaPackage + "String_Node_Str" + "String_Node_Str");
  SDOProperty shipToProp=new SDOProperty(aHelperContext);
  shipToProp.setXsd(true);
  shipToProp.setName("String_Node_Str");
  shipToProp.setMany(true);
  shipToProp.setXsdLocalName("String_Node_Str");
  shipToProp.setContainment(true);
  names=new ArrayList();
  names.add("String_Node_Str");
  shipToProp.setAliasNames(names);
  shipToProp.setMany(true);
  shipToProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY,Boolean.TRUE);
  shipToProp.setContainingType(POtype);
  shipToProp.setType(USaddrType);
  SDOProperty billToProp=new SDOProperty(aHelperContext);
  billToProp.setXsd(true);
  billToProp.setName("String_Node_Str");
  billToProp.setXsdLocalName("String_Node_Str");
  billToProp.setReadOnly(true);
  billToProp.setContainment(true);
  billToProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY,Boolean.TRUE);
  billToProp.setContainingType(POtype);
  billToProp.setType(USaddrType);
  SDOProperty itemsProp=new SDOProperty(aHelperContext);
  itemsProp.setXsd(true);
  itemsProp.setName("String_Node_Str");
  itemsProp.setXsdLocalName("String_Node_Str");
  itemsProp.setContainment(true);
  itemsProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY,Boolean.TRUE);
  itemsProp.setInstanceProperty(xmlDataTypeProperty,itemsType);
  itemsProp.setType(dataObjectType);
  itemsProp.setContainingType(POtype);
  SDOProperty commentProp=new SDOProperty(aHelperContext);
  commentProp.setXsd(true);
  commentProp.setName("String_Node_Str");
  commentProp.setXsdLocalName("String_Node_Str");
  commentProp.setType(stringType);
  commentProp.setContainingType(POtype);
  commentProp.setContainment(false);
  SDOProperty orderDateProp=new SDOProperty(aHelperContext);
  orderDateProp.setXsd(true);
  orderDateProp.setName("String_Node_Str");
  orderDateProp.setXsdLocalName("String_Node_Str");
  orderDateProp.setType(SDOConstants.SDO_YEARMONTHDAY);
  orderDateProp.setInstanceProperty(xmlDataTypeProperty,gregorianDateType);
  orderDateProp.setContainingType(POtype);
  orderDateProp.setContainment(false);
  SDOProperty topPriorityItemProp=new SDOProperty(aHelperContext);
  topPriorityItemProp.setXsd(true);
  topPriorityItemProp.setName("String_Node_Str");
  topPriorityItemProp.setXsdLocalName("String_Node_Str");
  topPriorityItemProp.setType(itemType);
  topPriorityItemProp.setMany(true);
  topPriorityItemProp.setInstanceProperty(SDOConstants.XMLELEMENT_PROPERTY,Boolean.TRUE);
  topPriorityItemProp.setContainment(true);
  topPriorityItemProp.setContainingType(POtype);
  POtype.getDeclaredProperties().add(shipToProp);
  POtype.getDeclaredProperties().add(billToProp);
  POtype.getDeclaredProperties().add(itemsProp);
  POtype.getDeclaredProperties().add(commentProp);
  POtype.getDeclaredProperties().add(orderDateProp);
  POtype.getDeclaredProperties().add(topPriorityItemProp);
  types.add(USaddrType);
  types.add(gregorianDateType);
  types.add(POtype);
  types.add(itemsType);
  types.add(itemType);
  types.add(quantityType);
  types.add(SKUType);
  return types;
}