Buggy code:
public String [ ] getCreateTableSQL ( Table table ) { } public int getBatchFetchSize ( int batchFetchSize ) { } protected StringBuilder comment ( StringBuilder buf , String comment ) { } public String [ ] getDropTableSQL ( Table table ) { } public String [ ] getCreateSequenceSQL ( Sequence seq ) { } public String [ ] getDropSequenceSQL ( Sequence seq ) { } public String [ ] getCreateIndexSQL ( Index index ) { } public String [ ] getDropIndexSQL ( Index index ) { } public String [ ] getAddColumnSQL ( Column column ) { } public String [ ] getDropColumnSQL ( Column column ) { } public String [ ] getAddPrimaryKeySQL ( PrimaryKey pk ) { } public String [ ] getDropPrimaryKeySQL ( PrimaryKey pk ) { } public String [ ] getAddForeignKeySQL ( ForeignKey fk ) { } public String [ ] getDropForeignKeySQL ( ForeignKey fk , Connection conn ) { } protected String getDeclareColumnSQL ( Column col , boolean alter ) { } protected String getPrimaryKeyConstraintSQL ( PrimaryKey pk ) { } protected String getForeignKeyConstraintSQL ( ForeignKey fk ) { } protected boolean supportsDeferredForeignKeyConstraints ( ) { } private String getActionName ( int action ) { } public boolean supportsDeleteAction ( int action ) { } public boolean supportsUpdateAction ( int action ) { } protected String getUniqueConstraintSQL ( Unique unq ) { } protected boolean supportsDeferredUniqueConstraints ( ) { } public boolean isSystemTable ( String name , String schema , boolean targetSchema ) { } public boolean isSystemTable ( DBIdentifier name , DBIdentifier schema , boolean targetSchema ) { } public boolean isSystemIndex ( String name , Table table ) { } public boolean isSystemIndex ( DBIdentifier name , Table table ) { } public boolean isSystemSequence ( String name , String schema , boolean targetSchema ) { } public boolean isSystemSequence ( DBIdentifier name , DBIdentifier schema , boolean targetSchema ) { } public Table [ ] getTables ( DatabaseMetaData meta , String catalog , String schemaName , String tableName , Connection conn ) throws SQLException { } public Table [ ] getTables ( DatabaseMetaData meta , DBIdentifier sqlCatalog , DBIdentifier sqlSchemaName , DBIdentifier sqlTableName , Connection conn ) throws SQLException { } protected Table newTable ( ResultSet tableMeta ) throws SQLException { } public Sequence [ ] getSequences ( DatabaseMetaData meta , String catalog , String schemaName , String sequenceName , Connection conn ) throws SQLException { } public Sequence [ ] getSequences ( DatabaseMetaData meta , DBIdentifier catalog , DBIdentifier schemaName , DBIdentifier sequenceName , Connection conn ) throws SQLException { } protected Sequence newSequence ( ResultSet sequenceMeta ) throws SQLException { } protected String getSequencesSQL ( String schemaName , String sequenceName ) { } protected String getSequencesSQL ( DBIdentifier schemaName , DBIdentifier sequenceName ) { } public Column [ ] getColumns ( DatabaseMetaData meta , String catalog , String schemaName , String tableName , String columnName , Connection conn ) throws SQLException { } public Column [ ] getColumns ( DatabaseMetaData meta , DBIdentifier catalog , DBIdentifier schemaName , DBIdentifier tableName , DBIdentifier columnName , Connection conn ) throws SQLException { } protected Column newColumn ( ResultSet colMeta ) throws SQLException { } public PrimaryKey [ ] getPrimaryKeys ( DatabaseMetaData meta , String catalog , String schemaName , String tableName , Connection conn ) throws SQLException { } public PrimaryKey [ ] getPrimaryKeys ( DatabaseMetaData meta , DBIdentifier catalog , DBIdentifier schemaName , DBIdentifier tableName , Connection conn ) throws SQLException { } protected PrimaryKey [ ] getPrimaryKeysFromGetPrimaryKeys ( DatabaseMetaData meta , String catalog , String schemaName , String tableName , Connection conn ) throws SQLException { } protected PrimaryKey [ ] getPrimaryKeysFromGetPrimaryKeys ( DatabaseMetaData meta , DBIdentifier catalog , DBIdentifier schemaName , DBIdentifier tableName , Connection conn ) throws SQLException { } protected PrimaryKey newPrimaryKey ( ResultSet pkMeta ) throws SQLException { } protected PrimaryKey [ ] getPrimaryKeysFromBestRowIdentifier ( DatabaseMetaData meta , String catalog , String schemaName , String tableName , Connection conn ) throws SQLException { } protected PrimaryKey [ ] getPrimaryKeysFromBestRowIdentifier ( DatabaseMetaData meta , DBIdentifier catalog , DBIdentifier schemaName , DBIdentifier tableName , Connection conn ) throws SQLException { } public Index [ ] getIndexInfo ( DatabaseMetaData meta , String catalog , String schemaName , String tableName , boolean unique , boolean approx , Connection conn ) throws SQLException { } public Index [ ] getIndexInfo ( DatabaseMetaData meta , DBIdentifier catalog , DBIdentifier schemaName , DBIdentifier tableName , boolean unique , boolean approx , Connection conn ) throws SQLException { } protected Index newIndex ( ResultSet idxMeta ) throws SQLException { } public ForeignKey [ ] getImportedKeys ( DatabaseMetaData meta , String catalog , String schemaName , String tableName , Connection conn ) throws SQLException { } public ForeignKey [ ] getImportedKeys ( DatabaseMetaData meta , DBIdentifier catalog , DBIdentifier schemaName , DBIdentifier tableName , Connection conn ) throws SQLException { } public ForeignKey [ ] getImportedKeys ( DatabaseMetaData meta , String catalog , String schemaName , String tableName , Connection conn , boolean partialKeys ) throws SQLException { } public ForeignKey [ ] getImportedKeys ( DatabaseMetaData meta , DBIdentifier catalog , DBIdentifier schemaName , DBIdentifier tableName , Connection conn , boolean partialKeys ) throws SQLException { } protected ForeignKey combineForeignKey ( Map < FKMapKey , ForeignKey > fkMap , ForeignKey fk ) { } protected ForeignKey newForeignKey ( ResultSet fkMeta ) throws SQLException { } protected String getTableNameForMetadata ( String tableName ) { } protected String getTableNameForMetadata ( DBIdentifier tableName ) { } protected String getSchemaNameForMetadata ( String schemaName ) { } protected String getSchemaNameForMetadata ( DBIdentifier schemaName ) { } protected String getCatalogNameForMetadata ( String catalogName ) { } protected String getCatalogNameForMetadata ( DBIdentifier catalogName ) { } protected String getColumnNameForMetadata ( String columnName ) { } protected String getColumnNameForMetadata ( DBIdentifier columnName ) { } public String convertSchemaCase ( String objectName ) { } public String convertSchemaCase ( DBIdentifier objectName ) { } public String getSchemaCase ( ) { } private void beforeMetadataOperation ( Connection c ) { } public Object getGeneratedKey ( Column col , Connection conn ) throws SQLException { } protected String getGeneratedKeySequenceName ( Column col ) { } public void setConfiguration ( Configuration conf ) { } private boolean isSupported ( ) { } public void startConfiguration ( ) { } public void endConfiguration ( ) { InputStream in = DBDictionary . class . getResourceAsStream ( "sql-keywords.rsrc" ) ; try { String keywords = new BufferedReader ( new InputStreamReader ( in ) ) . readLine ( ) ; in . close ( ) ; reservedWordSet . addAll ( Arrays . asList ( Strings . split ( keywords , "," , 0 ) ) ) ; } catch ( IOException ioe ) { throw new GeneralException ( ioe ) ; } finally { try { in . close ( ) ; } catch ( IOException e ) { } } if ( ( reservedWords ) != null ) reservedWordSet . addAll ( Arrays . asList ( Strings . split ( reservedWords . toUpperCase ( ) , "," , 0 ) ) ) ; if ( ( systemSchemas ) != null ) systemSchemaSet . addAll ( Arrays . asList ( Strings . split ( systemSchemas . toUpperCase ( ) , "," , 0 ) ) ) ; if ( ( systemTables ) != null ) systemTableSet . addAll ( Arrays . asList ( Strings . split ( systemTables . toUpperCase ( ) , "," , 0 ) ) ) ; if ( ( fixedSizeTypeNames ) != null ) fixedSizeTypeNameSet . addAll ( Arrays . asList ( Strings . split ( fixedSizeTypeNames . toUpperCase ( ) , "," , 0 ) ) ) ; nextSequenceQuery = StringUtils . trimToNull ( nextSequenceQuery ) ; if ( ( selectWords ) != null ) selectWordSet . addAll ( Arrays . asList ( Strings . split ( selectWords . toUpperCase ( ) , "," , 0 ) ) ) ; SQLErrorCodeReader codeReader = new SQLErrorCodeReader ( ) ; String rsrc = "sql-error-state-codes.xml" ; <START_BUG> InputStream stream = getClass ( ) . getResourceAsStream ( rsrc ) ; <END_BUG>

Fix:
InputStream stream = DBDictionary . class . getResourceAsStream ( rsrc ) ;