Buggy code:
public final class dblook { private static final int DB2_MAX_NUMBER_OF_TABLES = 30 ; private Connection conn ; private static PreparedStatement getColNameFromNumberQuery ; private static HashMap schemaMap ; private static HashMap tableIdToNameMap ; private static String sourceDBUrl ; private static String ddlFileName ; private static String stmtDelimiter ; private static boolean appendLogs ; private static ArrayList tableList ; private static String schemaParam ; private static String targetSchema ; private static boolean skipViews ; private static boolean verbose ; private static String sourceDBName ; private static String lookLogName = "dblook.log" ; private static LocalizedResource langUtil ; private static boolean sqlAuthorization ; public static void main ( String [ ] args ) { } public dblook ( String [ ] args ) throws Exception { } private void initState ( ) { } private boolean parseArgs ( String [ ] args ) { } private int loadParam ( String [ ] args , int start ) { } private boolean loadDriver ( ) { } private String extractDBNameFromUrl ( String dbUrl ) { } private int extractTableNamesFromList ( String [ ] args , int start ) { } private void showVariables ( ) { } private void go ( ) throws Exception { try { this . conn = DriverManager . getConnection ( dblook . sourceDBUrl ) ; prepForDump ( ) ; boolean at10_6 = dblook . atVersion ( conn , 10 , 6 ) ; boolean at10_9 = dblook . atVersion ( conn , 10 , 9 ) ; DB_Schema . doSchemas ( this . conn , ( ( ( dblook . tableList ) != null ) && ( ( dblook . targetSchema ) == null ) ) ) ; if ( at10_6 ) { DB_Sequence . doSequences ( conn ) ; } if ( ( dblook . tableList ) == null ) { DB_Jar . doJars ( dblook . sourceDBName , this . conn , at10_9 ) ; <START_BUG> DB_Alias . doProceduresFunctionsAndUDTs ( this . conn , at10_6 ) ; <END_BUG> } DB_Table . doTables ( this . conn , dblook . tableIdToNameMap ) ; DB_Index . doIndexes ( this . conn ) ; DB_Alias . doSynonyms ( this . conn ) ; DB_Key . doKeys ( this . conn ) ; DB_Check . doChecks ( this . conn ) ; if ( ! ( dblook . skipViews ) ) DB_View . doViews ( this . conn ) ; DB_Trigger . doTriggers ( this . conn ) ; DB_Roles . doRoles ( this . conn ) ; DB_GrantRevoke . doAuthorizations ( this . conn , at10_6 ) ; if ( ( dblook . getColNameFromNumberQuery ) != null ) dblook . getColNameFromNumberQuery . close ( ) ; Logs . cleanup ( ) ; } catch ( SQLException sqlE ) { Logs . debug ( sqlE ) ; Logs . debug ( Logs . unRollExceptions ( sqlE ) , ( ( String ) ( null ) ) ) ; Logs . cleanup ( ) ; return ; } catch ( Exception e ) { Logs . debug ( e ) ; Logs . cleanup ( ) ; return ; } finally { if ( ( conn ) != null ) { conn . commit ( ) ; conn . close ( ) ; } } } private void prepForDump ( ) throws Exception { } public static String getColumnListFromDescription ( String tableId , String description ) throws SQLException { } public static String getColNameFromNumber ( String tableId , int colNum ) throws SQLException { } public static String addQuotes ( String name ) { } public static String addSingleQuotes ( String name ) { } public static String stripQuotes ( String quotedName ) { } public static boolean isExcludedTable ( String tableName ) { } private static final String [ ] ignorableSchemaNames = new String [ ] { "SYSIBM" , "SYS" , "SYSVISUAL" , "SYSCAT" , "SYSFUN" , "SYSPROC" , "SYSSTAT" , "NULLID" , "SYSCS_ADMIN" , "SYSCS_DIAG" , "SYSCS_UTIL" , "SQLJ" } ; public static boolean isIgnorableSchema ( String schemaName ) { } public static boolean stringContainsTargetTable ( String str ) { } private static boolean partOfWord ( String str , int pos , int nameLen , int strLen ) { } public static String expandDoubleQuotes ( String name ) { } public static String unExpandDoubleQuotes ( String name ) { } public static String lookupSchemaId ( String schemaId ) { } public static String lookupTableId ( String tableId ) { } public static void writeVerboseOutput ( String key , String value ) { } public static String lookupMessage ( String key ) { } public static String lookupMessage ( String key , String [ ] vals ) { } public static String removeNewlines ( String str ) { } private static boolean atVersion ( Connection conn , int major , int minor ) throws SQLException { } }

Fix:
DB_Alias . doPFAU ( this . conn , at10_6 ) ;