Buggy code:
public class SystemProcedures { private static final int SQL_BEST_ROWID = 1 ; private static final int SQL_ROWVER = 2 ; private static final String DRIVER_TYPE_OPTION = "DATATYPE" ; private static final String ODBC_DRIVER_OPTION = "'ODBC'" ; public static final String SQLERRMC_MESSAGE_DELIMITER = new String ( new char [ ] { ( ( char ) ( 20 ) ) , ( ( char ) ( 20 ) ) , ( ( char ) ( 20 ) ) } ) ; public static void SQLCAMESSAGE ( int sqlcode , short errmcLen , String sqlerrmc , String sqlerrp , int errd0 , int errd1 , int errd2 , int errd3 , int errd4 , int errd5 , String warn , String sqlState , String file , String localeStr , String [ ] msg , int [ ] rc ) { } private static Connection getDefaultConn ( ) throws SQLException { InternalDriver id = InternalDriver . activeDriver ( ) ; if ( id != null ) { <START_BUG> Connection conn = id . connect ( "jdbc:default:connection" , null ) ; <END_BUG> if ( conn != null ) return conn ; } throw Util . noCurrentConnection ( ) ; } private static DatabaseMetaData getDMD ( ) throws SQLException { } public static void SQLPROCEDURES ( String catalogName , String schemaName , String procName , String options , ResultSet [ ] rs ) throws SQLException { } public static void SQLFUNCTIONS ( String catalogName , String schemaName , String funcName , String options , ResultSet [ ] rs ) throws SQLException { } public static void SQLTABLES ( String catalogName , String schemaName , String tableName , String tableType , String options , ResultSet [ ] rs ) throws SQLException { } public static void SQLFOREIGNKEYS ( String pkCatalogName , String pkSchemaName , String pkTableName , String fkCatalogName , String fkSchemaName , String fkTableName , String options , ResultSet [ ] rs ) throws SQLException { } private static String getOption ( String pattern , String options ) { } public static void SQLPROCEDURECOLS ( String catalogName , String schemaName , String procName , String paramName , String options , ResultSet [ ] rs ) throws SQLException { } public static void SQLFUNCTIONPARAMS ( String catalogName , String schemaName , String funcName , String paramName , String options , ResultSet [ ] rs ) throws SQLException { } public static void SQLCOLUMNS ( String catalogName , String schemaName , String tableName , String columnName , String options , ResultSet [ ] rs ) throws SQLException { } public static void SQLCOLPRIVILEGES ( String catalogName , String schemaName , String tableName , String columnName , String options , ResultSet [ ] rs ) throws SQLException { } public static void SQLTABLEPRIVILEGES ( String catalogName , String schemaName , String tableName , String options , ResultSet [ ] rs ) throws SQLException { } public static void SQLPRIMARYKEYS ( String catalogName , String schemaName , String tableName , String options , ResultSet [ ] rs ) throws SQLException { } public static void SQLGETTYPEINFO ( short dataType , String options , ResultSet [ ] rs ) throws SQLException { } public static void SQLSTATISTICS ( String catalogName , String schemaName , String tableName , short unique , short approximate , String options , ResultSet [ ] rs ) throws SQLException { } public static void SQLSPECIALCOLUMNS ( short colType , String catalogName , String schemaName , String tableName , short scope , short nullable , String options , ResultSet [ ] rs ) throws SQLException { } public static void SQLUDTS ( String catalogName , String schemaPattern , String typeNamePattern , String udtTypes , String options , ResultSet [ ] rs ) throws SQLException { } public static void METADATA ( ResultSet [ ] rs ) throws SQLException { } private static boolean isForODBC ( String options ) { } public static void SYSCS_SET_DATABASE_PROPERTY ( String key , String value ) throws SQLException { } public static String SYSCS_GET_DATABASE_PROPERTY ( String key ) throws SQLException { } public static void SYSCS_UPDATE_STATISTICS ( String schemaname , String tablename , String indexname ) throws SQLException { } public static void SYSCS_DROP_STATISTICS ( String schemaname , String tablename , String indexname ) throws SQLException { } private static String basicSchemaTableValidation ( String schemaname , String tablename ) throws SQLException { } public static void SYSCS_COMPRESS_TABLE ( String schemaname , String tablename , short sequential ) throws SQLException { } public static void SYSCS_FREEZE_DATABASE ( ) throws SQLException { } public static void SYSCS_UNFREEZE_DATABASE ( ) throws SQLException { } public static void SYSCS_CHECKPOINT_DATABASE ( ) throws SQLException { } public static void SYSCS_BACKUP_DATABASE ( String backupDir ) throws SQLException { } public static void SYSCS_BACKUP_DATABASE_NOWAIT ( String backupDir ) throws SQLException { } public static void SYSCS_BACKUP_DATABASE_AND_ENABLE_LOG_ARCHIVE_MODE ( String backupDir , short deleteOnlineArchivedLogFiles ) throws SQLException { } public static void SYSCS_BACKUP_DATABASE_AND_ENABLE_LOG_ARCHIVE_MODE_NOWAIT ( String backupDir , short deleteOnlineArchivedLogFiles ) throws SQLException { } public static void SYSCS_DISABLE_LOG_ARCHIVE_MODE ( short deleteOnlineArchivedLogFiles ) throws SQLException { } public static void SYSCS_SET_RUNTIMESTATISTICS ( short enable ) throws SQLException { } public static void SYSCS_SET_STATISTICS_TIMING ( short enable ) throws SQLException { } public static int SYSCS_CHECK_TABLE ( String schema , String tablename ) throws SQLException { } public static void SYSCS_INPLACE_COMPRESS_TABLE ( String schema , String tablename , short purgeRows , short defragmentRows , short truncateEnd ) throws SQLException { } public static String SYSCS_GET_RUNTIMESTATISTICS ( ) throws SQLException { } public static void INSTALL_JAR ( String url , String jar , int deploy ) throws SQLException { } public static void REPLACE_JAR ( String url , String jar ) throws SQLException { } public static void REMOVE_JAR ( String jar , int undeploy ) throws SQLException { } private static void checkJarSQLName ( String sqlName ) throws StandardException { } public static void SYSCS_EXPORT_TABLE ( String schemaName , String tableName , String fileName , String columnDelimiter , String characterDelimiter , String codeset ) throws SQLException { }

Fix:
Connection conn = id . connect ( "jdbc:default:connection" , null , 0 ) ;