Program: 80030
Project: 80030
Buggy source:
/** 
 * <p> Create system procedures that are part of the SYSCS_UTIL schema added in version 10.9. These include the procedures for managing NATIVE credentials. See DERBY-866. </p>
 * @param tc an instance of the Transaction Controller.
 * @param newlyCreatedRoutines set of routines we are creating (used to add permissions later on)
 */
void create_10_9_system_procedures(TransactionController tc,HashSet newlyCreatedRoutines) throws StandardException {
  UUID sysUtilUUID=getSystemUtilSchemaDescriptor().getUUID();
{
    String[] arg_names={"String_Node_Str","String_Node_Str"};
    TypeDescriptor[] arg_types={CATALOG_TYPE_SYSTEM_IDENTIFIER,DataTypeDescriptor.getCatalogType(Types.VARCHAR,32672)};
    createSystemProcedureOrFunction("String_Node_Str",sysUtilUUID,arg_names,arg_types,0,0,RoutineAliasInfo.MODIFIES_SQL_DATA,false,(TypeDescriptor)null,newlyCreatedRoutines,tc);
  }
{
    String[] arg_names={"String_Node_Str","String_Node_Str"};
    TypeDescriptor[] arg_types={CATALOG_TYPE_SYSTEM_IDENTIFIER,DataTypeDescriptor.getCatalogType(Types.VARCHAR,32672)};
    createSystemProcedureOrFunction("String_Node_Str",sysUtilUUID,arg_names,arg_types,0,0,RoutineAliasInfo.MODIFIES_SQL_DATA,false,(TypeDescriptor)null,newlyCreatedRoutines,tc);
  }
{
    String[] arg_names={"String_Node_Str"};
    TypeDescriptor[] arg_types={DataTypeDescriptor.getCatalogType(Types.VARCHAR,32672)};
    createSystemProcedureOrFunction("String_Node_Str",sysUtilUUID,arg_names,arg_types,0,0,RoutineAliasInfo.MODIFIES_SQL_DATA,false,(TypeDescriptor)null,newlyCreatedRoutines,tc);
  }
{
    String[] arg_names={"String_Node_Str"};
    TypeDescriptor[] arg_types={CATALOG_TYPE_SYSTEM_IDENTIFIER};
    createSystemProcedureOrFunction("String_Node_Str",sysUtilUUID,arg_names,arg_types,0,0,RoutineAliasInfo.MODIFIES_SQL_DATA,false,(TypeDescriptor)null,newlyCreatedRoutines,tc);
  }
}

Fixed version (ground truth):
/** 
 * <p> Create system procedures that are part of the SYSCS_UTIL schema added in version 10.9. These include the procedures for managing NATIVE credentials. See DERBY-866. </p>
 * @param tc an instance of the Transaction Controller.
 * @param newlyCreatedRoutines set of routines we are creating (used to add permissions later on)
 */
void create_10_9_system_procedures(TransactionController tc,HashSet newlyCreatedRoutines) throws StandardException {
  UUID sysUtilUUID=getSystemUtilSchemaDescriptor().getUUID();
{
    String[] arg_names={"String_Node_Str","String_Node_Str"};
    TypeDescriptor[] arg_types={CATALOG_TYPE_SYSTEM_IDENTIFIER,DataTypeDescriptor.getCatalogType(Types.VARCHAR,32672)};
    createSystemProcedureOrFunction("String_Node_Str",sysUtilUUID,arg_names,arg_types,0,0,RoutineAliasInfo.MODIFIES_SQL_DATA,false,(TypeDescriptor)null,newlyCreatedRoutines,tc);
  }
{
    String[] arg_names={"String_Node_Str","String_Node_Str"};
    TypeDescriptor[] arg_types={CATALOG_TYPE_SYSTEM_IDENTIFIER,DataTypeDescriptor.getCatalogType(Types.VARCHAR,32672)};
    createSystemProcedureOrFunction("String_Node_Str",sysUtilUUID,arg_names,arg_types,0,0,RoutineAliasInfo.MODIFIES_SQL_DATA,false,(TypeDescriptor)null,newlyCreatedRoutines,tc);
  }
{
    String[] arg_names={"String_Node_Str"};
    TypeDescriptor[] arg_types={DataTypeDescriptor.getCatalogType(Types.VARCHAR,32672)};
    createSystemProcedureOrFunction("String_Node_Str",sysUtilUUID,arg_names,arg_types,0,0,RoutineAliasInfo.MODIFIES_SQL_DATA,false,(TypeDescriptor)null,newlyCreatedRoutines,tc);
  }
{
    String[] arg_names={"String_Node_Str"};
    TypeDescriptor[] arg_types={CATALOG_TYPE_SYSTEM_IDENTIFIER};
    createSystemProcedureOrFunction("String_Node_Str",sysUtilUUID,arg_names,arg_types,0,0,RoutineAliasInfo.MODIFIES_SQL_DATA,false,(TypeDescriptor)null,newlyCreatedRoutines,tc);
  }
{
    String[] arg_names={"String_Node_Str","String_Node_Str"};
    TypeDescriptor[] arg_types={CATALOG_TYPE_SYSTEM_IDENTIFIER,CATALOG_TYPE_SYSTEM_IDENTIFIER};
    createSystemProcedureOrFunction("String_Node_Str",sysUtilUUID,arg_names,arg_types,0,0,RoutineAliasInfo.READS_SQL_DATA,false,DataTypeDescriptor.getCatalogType(Types.BIGINT),newlyCreatedRoutines,tc);
  }
}