Program: 66159
Project: 66159
Buggy source:
/** 
 * Build and return a Hashtable containing the default Java to XML conversion pairs
 */
private static HashMap buildJavaTypes(){
  HashMap javaTypes=new HashMap();
  javaTypes.put(ClassConstants.APBYTE,XMLConstants.HEX_BINARY_QNAME);
  javaTypes.put(ClassConstants.BIGDECIMAL,XMLConstants.DECIMAL_QNAME);
  javaTypes.put(ClassConstants.BIGINTEGER,XMLConstants.INTEGER_QNAME);
  javaTypes.put(ClassConstants.PBOOLEAN,XMLConstants.BOOLEAN_QNAME);
  javaTypes.put(ClassConstants.PBYTE,XMLConstants.BYTE_QNAME);
  javaTypes.put(ClassConstants.CALENDAR,XMLConstants.DATE_TIME_QNAME);
  javaTypes.put(ClassConstants.PDOUBLE,XMLConstants.DOUBLE_QNAME);
  javaTypes.put(ClassConstants.PFLOAT,XMLConstants.FLOAT_QNAME);
  javaTypes.put(ClassConstants.PINT,XMLConstants.INT_QNAME);
  javaTypes.put(ClassConstants.PLONG,XMLConstants.LONG_QNAME);
  javaTypes.put(ClassConstants.PSHORT,XMLConstants.SHORT_QNAME);
  javaTypes.put(XMLConstants.QNAME_CLASS,XMLConstants.QNAME_QNAME);
  javaTypes.put(ClassConstants.STRING,XMLConstants.STRING_QNAME);
  javaTypes.put(ClassConstants.ABYTE,XMLConstants.HEX_BINARY_QNAME);
  javaTypes.put(ClassConstants.BOOLEAN,XMLConstants.BOOLEAN_QNAME);
  javaTypes.put(ClassConstants.BYTE,XMLConstants.BYTE_QNAME);
  javaTypes.put(ClassConstants.GREGORIAN_CALENDAR,XMLConstants.DATE_TIME_QNAME);
  javaTypes.put(ClassConstants.DOUBLE,XMLConstants.DOUBLE_QNAME);
  javaTypes.put(ClassConstants.FLOAT,XMLConstants.FLOAT_QNAME);
  javaTypes.put(ClassConstants.INTEGER,XMLConstants.INT_QNAME);
  javaTypes.put(ClassConstants.LONG,XMLConstants.LONG_QNAME);
  javaTypes.put(ClassConstants.SHORT,XMLConstants.SHORT_QNAME);
  javaTypes.put(ClassConstants.UTILDATE,XMLConstants.DATE_TIME_QNAME);
  javaTypes.put(ClassConstants.CHAR,XMLConstants.UNSIGNED_INT_QNAME);
  javaTypes.put(ClassConstants.PCHAR,XMLConstants.UNSIGNED_INT_QNAME);
  javaTypes.put(ClassConstants.DURATION,XMLConstants.DURATION_QNAME);
  javaTypes.put(XMLConstants.UUID,XMLConstants.STRING_QNAME);
  javaTypes.put(ClassConstants.XML_GREGORIAN_CALENDAR,XMLConstants.ANY_SIMPLE_TYPE_QNAME);
  return javaTypes;
}

Fixed version (ground truth):
/** 
 * Build and return a Hashtable containing the default Java to XML conversion pairs
 */
private static HashMap buildJavaTypes(){
  HashMap javaTypes=new HashMap();
  javaTypes.put(ClassConstants.APBYTE,XMLConstants.HEX_BINARY_QNAME);
  javaTypes.put(ClassConstants.BIGDECIMAL,XMLConstants.DECIMAL_QNAME);
  javaTypes.put(ClassConstants.BIGINTEGER,XMLConstants.INTEGER_QNAME);
  javaTypes.put(ClassConstants.PBOOLEAN,XMLConstants.BOOLEAN_QNAME);
  javaTypes.put(ClassConstants.PBYTE,XMLConstants.BYTE_QNAME);
  javaTypes.put(ClassConstants.CALENDAR,XMLConstants.DATE_TIME_QNAME);
  javaTypes.put(ClassConstants.PDOUBLE,XMLConstants.DOUBLE_QNAME);
  javaTypes.put(ClassConstants.PFLOAT,XMLConstants.FLOAT_QNAME);
  javaTypes.put(ClassConstants.PINT,XMLConstants.INT_QNAME);
  javaTypes.put(ClassConstants.PLONG,XMLConstants.LONG_QNAME);
  javaTypes.put(ClassConstants.PSHORT,XMLConstants.SHORT_QNAME);
  javaTypes.put(XMLConstants.QNAME_CLASS,XMLConstants.QNAME_QNAME);
  javaTypes.put(ClassConstants.STRING,XMLConstants.STRING_QNAME);
  javaTypes.put(ClassConstants.ABYTE,XMLConstants.HEX_BINARY_QNAME);
  javaTypes.put(ClassConstants.BOOLEAN,XMLConstants.BOOLEAN_QNAME);
  javaTypes.put(ClassConstants.BYTE,XMLConstants.BYTE_QNAME);
  javaTypes.put(ClassConstants.GREGORIAN_CALENDAR,XMLConstants.DATE_TIME_QNAME);
  javaTypes.put(ClassConstants.DOUBLE,XMLConstants.DOUBLE_QNAME);
  javaTypes.put(ClassConstants.FLOAT,XMLConstants.FLOAT_QNAME);
  javaTypes.put(ClassConstants.INTEGER,XMLConstants.INT_QNAME);
  javaTypes.put(ClassConstants.LONG,XMLConstants.LONG_QNAME);
  javaTypes.put(ClassConstants.SHORT,XMLConstants.SHORT_QNAME);
  javaTypes.put(ClassConstants.UTILDATE,XMLConstants.DATE_TIME_QNAME);
  javaTypes.put(ClassConstants.CHAR,XMLConstants.UNSIGNED_INT_QNAME);
  javaTypes.put(ClassConstants.PCHAR,XMLConstants.UNSIGNED_INT_QNAME);
  javaTypes.put(ClassConstants.DURATION,XMLConstants.DURATION_QNAME);
  javaTypes.put(XMLConstants.UUID,XMLConstants.STRING_QNAME);
  return javaTypes;
}