Buggy code:
public class EntityTable implements Table { private static final byte UNREFERENCED = 0 ; private static final byte CLEAN = 1 ; private static final byte DIRTY = 2 ; private static final byte CREATED = 4 ; private static final byte DELETED = 8 ; private static final byte DIRTY_RELATIONS = 16 ; private static final Object NOT_LOADED = new Object ( ) ; private JDBCEntityBridge2 entity ; private String tableName ; private int fieldsTotal ; private int relationsTotal ; private DataSource dataSource ; private Schema schema ; private int tableId ; private boolean dontFlushCreated ; private String deleteSql ; private String updateSql ; private String insertSql ; private String selectSql ; private String duplicatePkSql ; private final EntityTable . CommitStrategy insertStrategy ; private final EntityTable . CommitStrategy deleteStrategy ; private final EntityTable . CommitStrategy updateStrategy ; private Logger log ; private Cache cache ; private ObjectName cacheName ; private int [ ] references ; private int [ ] referencedBy ; private EntityTable . ForeignKeyConstraint [ ] fkConstraints ; public EntityTable ( JDBCEntityMetaData metadata , JDBCEntityBridge2 entity , Schema schema , int tableId ) { } public void start ( ) { } public StringBuffer appendColumnNames ( JDBCCMPFieldBridge2 [ ] fields , String alias , StringBuffer buf ) { } public void addField ( ) { } public int addVersionField ( ) { } public EntityTable . ForeignKeyConstraint addFkConstraint ( JDBCCMPFieldBridge2 [ ] fkFields , EntityTable referenced ) { } public DataSource getDataSource ( ) { } public Object loadRow ( ResultSet rs , boolean searchableOnly ) { } public EntityTable . Row getRow ( Object id ) { } public boolean hasRow ( Object id ) { } public EntityTable . Row loadRow ( Object id ) throws SQLException { } public int getTableId ( ) { } public String getTableName ( ) { } public Table . View createView ( Transaction tx ) { } private void addReference ( EntityTable table ) { } private void addReferencedBy ( EntityTable table ) { } private void delete ( EntityTable . View view ) throws SQLException { } private void update ( EntityTable . View view ) throws SQLException { } private void insert ( EntityTable . View view ) throws SQLException { } private EntityTable . View getView ( ) { } public class View implements Table . View { private final Transaction tx ; private Map rowByPk = new HashMap ( ) ; private EntityTable . Row created ; private EntityTable . Row deleted ; private EntityTable . Row dirty ; private EntityTable . Row dirtyRelations ; private EntityTable . Row clean ; private EntityTable . Row cacheUpdates ; private List rowsWithNullFks ; private boolean inFlush ; public View ( Transaction tx ) { } public EntityTable . Row getRow ( Object pk ) { } public EntityTable . Row getRowByPk ( Object pk , boolean required ) { } public void addClean ( EntityTable . Row row ) { } public void addCreated ( EntityTable . Row row ) throws DuplicateKeyException { } public EntityTable . Row loadRow ( ResultSet rs , Object pk , boolean searchableOnly ) { } public Object loadPk ( ResultSet rs ) { } public boolean hasRow ( Object id ) { } public void addRowWithNullFk ( EntityTable . Row row ) { } private EntityTable . Row createCleanRow ( Object pk ) { } private EntityTable . Row createCleanRow ( Object pk , Object [ ] fields , Object [ ] relations ) { } public void flushDeleted ( Schema . Views views ) throws SQLException { } public void flushCreated ( Schema . Views views ) throws SQLException { if ( ( ( created ) == null ) || ( dontFlushCreated ) ) { if ( log . isTraceEnabled ( ) ) { log . trace ( "no<seq2seq4repair_space>rows<seq2seq4repair_space>to<seq2seq4repair_space>insert" ) ; } return ; } if ( ( references ) != null ) { if ( inFlush ) { if ( log . isTraceEnabled ( ) ) { <START_BUG> log . trace ( "inFlush,<seq2seq4repair_space>ignorning<seq2seq4repair_space>flushCreated" ) ; <END_BUG> } return ; } else if ( log . isTraceEnabled ( ) ) { log . trace ( "flushing<seq2seq4repair_space>created<seq2seq4repair_space>references" ) ; } inFlush = true ; try { for ( int i = 0 ; i < ( references . length ) ; ++ i ) { final Table . View view = views . entityViews [ references [ i ] ] ; if ( view != null ) { view . flushCreated ( views ) ; } } } finally { inFlush = false ; } } insert ( this ) ; } public void flushUpdated ( ) throws SQLException { } public void beforeCompletion ( ) { } public void committed ( ) { } public void rolledback ( ) { } private void nullifyForeignKeys ( ) throws SQLException { } } public class Row { private EntityTable . View view ; private Object pk ; private final Object [ ] fields ; private final Object [ ] relations ; private byte state ; private EntityTable . Row prev ; private EntityTable . Row next ; private boolean cacheUpdateScheduled ; private EntityTable . Row nextCacheUpdate ; private EntityTable . ForeignKeyConstraint [ ] fkUpdates ; public Row ( EntityTable . View view ) { } public Row ( EntityTable . View view , Object [ ] fields , Object [ ] relations ) { } public Object getPk ( ) { } public void loadCachedRelations ( int index , Cache . CacheLoader loader ) { } public void cacheRelations ( int index , Cache . CacheLoader loader ) { } public void insert ( Object pk ) throws DuplicateKeyException { } public Object getFieldValue ( int i ) { } public void setFieldValue ( int i , Object value ) { } public boolean isDirty ( ) { } public void setDirty ( ) { } public void setDirtyRelations ( ) { } public void delete ( ) { }

Fix:
log . trace ( "inFlush,<seq2seq4repair_space>ignoring<seq2seq4repair_space>flushCreated" ) ;