Program: 138545
Project: 138545
Buggy source:
/** 
 * DOC xqliu Comment method "createConnectionParam".
 * @param conn
 * @return
 */
public static DBConnectionParameter createConnectionParam(Connection conn){
  DBConnectionParameter connectionParam=new DBConnectionParameter();
  Properties properties=new Properties();
  properties.setProperty(TaggedValueHelper.USER,JavaSqlFactory.getUsernameDefault(conn));
  properties.setProperty(TaggedValueHelper.PASSWORD,JavaSqlFactory.getPasswordDefault(conn));
  connectionParam.setParameters(properties);
  connectionParam.setName(conn.getName());
  connectionParam.setAuthor(MetadataHelper.getAuthor(conn));
  connectionParam.setDescription(MetadataHelper.getDescription(conn));
  connectionParam.setPurpose(MetadataHelper.getPurpose(conn));
  connectionParam.setStatus(MetadataHelper.getDevStatus(conn));
  connectionParam.setDriverPath("String_Node_Str");
  connectionParam.setDriverClassName(JavaSqlFactory.getDriverClass(conn));
  connectionParam.setJdbcUrl(JavaSqlFactory.getURL(conn));
  connectionParam.setHost(ConnectionUtils.getServerName(conn));
  connectionParam.setPort(ConnectionUtils.getPort(conn));
  if (conn instanceof DatabaseConnection) {
    connectionParam.setSqlTypeName(((DatabaseConnection)conn).getDatabaseType());
  }
  String schema=MetadataHelper.getOtherParameter(conn);
  connectionParam.setOtherParameter(schema);
  connectionParam.setDbName(ConnectionUtils.getSID(conn));
  String retrieveAllMetadata=MetadataHelper.getRetrieveAllMetadata(conn);
  connectionParam.setRetrieveAllMetadata(retrieveAllMetadata == null ? true : new Boolean(retrieveAllMetadata).booleanValue());
  return connectionParam;
}

Fixed version (ground truth):
/** 
 * DOC xqliu Comment method "createConnectionParam".
 * @param conn
 * @return
 */
public static DBConnectionParameter createConnectionParam(Connection conn){
  DBConnectionParameter connectionParam=new DBConnectionParameter();
  Properties properties=new Properties();
  properties.setProperty(TaggedValueHelper.USER,JavaSqlFactory.getUsernameDefault(conn));
  properties.setProperty(TaggedValueHelper.PASSWORD,JavaSqlFactory.getPasswordDefault(conn));
  connectionParam.setParameters(properties);
  connectionParam.setName(conn.getName());
  connectionParam.setAuthor(MetadataHelper.getAuthor(conn));
  connectionParam.setDescription(MetadataHelper.getDescription(conn));
  connectionParam.setPurpose(MetadataHelper.getPurpose(conn));
  connectionParam.setStatus(MetadataHelper.getDevStatus(conn));
  connectionParam.setDriverPath(((DatabaseConnection)conn).getDriverJarPath());
  connectionParam.setDriverClassName(JavaSqlFactory.getDriverClass(conn));
  connectionParam.setJdbcUrl(JavaSqlFactory.getURL(conn));
  connectionParam.setHost(ConnectionUtils.getServerName(conn));
  connectionParam.setPort(ConnectionUtils.getPort(conn));
  if (conn instanceof DatabaseConnection) {
    connectionParam.setSqlTypeName(((DatabaseConnection)conn).getDatabaseType());
  }
  String schema=MetadataHelper.getOtherParameter(conn);
  connectionParam.setOtherParameter(schema);
  connectionParam.setDbName(ConnectionUtils.getSID(conn));
  String retrieveAllMetadata=MetadataHelper.getRetrieveAllMetadata(conn);
  connectionParam.setRetrieveAllMetadata(retrieveAllMetadata == null ? true : new Boolean(retrieveAllMetadata).booleanValue());
  return connectionParam;
}