Buggy code:
public class DefaultLogMiner implements LogMiner , Constants { private final Logger log = LogSysFactory . getLogger ( DefaultLogMiner . class ) ; private int LAST_SCN = 0 ; private ResultSet result = null ; private Config config = null ; private Dictionary dict = null ; private DatabaseClient dbClient = null ; private Metadata meta = null ; public DefaultLogMiner ( DatabaseClient dbClient , Config config ) { } public void buildDictionary ( ) { } @ Override public void build ( ) { try { RedoLog redolog = new RedoLog ( dbClient ) ; if ( ( ( config . getDictType ( ) ) == ( DICT_TYPE . STORE_IN_REDO_LOG ) ) && ( ! ( redolog . isArchivedLogModeEnabled ( ) ) ) ) { log . error ( "Fail<seq2seq4repair_space>to<seq2seq4repair_space>build<seq2seq4repair_space>log<seq2seq4repair_space>miner<seq2seq4repair_space>dictionary.<seq2seq4repair_space>Error<seq2seq4repair_space>message:<seq2seq4repair_space>Archived<seq2seq4repair_space>log<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>enabled<seq2seq4repair_space>with<seq2seq4repair_space>STORE_IN_REDO_LOG<seq2seq4repair_space>enabled" ) ; throw new RuntimeException ( "Fail<seq2seq4repair_space>to<seq2seq4repair_space>build<seq2seq4repair_space>log<seq2seq4repair_space>miner<seq2seq4repair_space>dictionary.<seq2seq4repair_space>Error<seq2seq4repair_space>message:<seq2seq4repair_space>Archived<seq2seq4repair_space>log<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>enabled<seq2seq4repair_space>with<seq2seq4repair_space>STORE_IN_REDO_LOG<seq2seq4repair_space>enabled" ) ; } if ( ! ( redolog . isSupplementalLogEnabled ( ) ) ) { log . info ( "Tryinng<seq2seq4repair_space>to<seq2seq4repair_space>enable<seq2seq4repair_space>Suplemental<seq2seq4repair_space>Log<seq2seq4repair_space>Mode." ) ; <START_BUG> if ( ( config . isSupplementalLogEnabled ( ) ) && ( redolog . enableSupplementalLog ( ) ) ) { <END_BUG> log . info ( "Succeed<seq2seq4repair_space>enabled<seq2seq4repair_space>Suplemental<seq2seq4repair_space>Log<seq2seq4repair_space>Mode." ) ; } if ( ! ( redolog . isSupplementalLogEnabled ( ) ) ) { log . error ( "Fail<seq2seq4repair_space>to<seq2seq4repair_space>build<seq2seq4repair_space>log<seq2seq4repair_space>miner<seq2seq4repair_space>dictionary.<seq2seq4repair_space>Error<seq2seq4repair_space>message:<seq2seq4repair_space>Supplemental<seq2seq4repair_space>Log<seq2seq4repair_space>Mode<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>enabled<seq2seq4repair_space>priot<seq2seq4repair_space>to<seq2seq4repair_space>start<seq2seq4repair_space>LogMiner<seq2seq4repair_space>build" ) ; throw new RuntimeException ( "Fail<seq2seq4repair_space>to<seq2seq4repair_space>build<seq2seq4repair_space>log<seq2seq4repair_space>miner<seq2seq4repair_space>dictionary.<seq2seq4repair_space>Error<seq2seq4repair_space>message:<seq2seq4repair_space>Supplemental<seq2seq4repair_space>Log<seq2seq4repair_space>Mode<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>enabled<seq2seq4repair_space>priot<seq2seq4repair_space>to<seq2seq4repair_space>start<seq2seq4repair_space>LogMiner<seq2seq4repair_space>build" ) ; } } String buildList = redolog . buildLogMinerStringFromList ( ( ( config . getBuildType ( ) ) == ( BUILD_TYPE . ONLINE ) ? redolog . getOnlineFileList ( ) : redolog . getOfflineFileList ( ) ) , true ) ; dbClient . execute ( ( buildList + "" ) ) ; if ( log . isDebugEnabled ( ) ) { ResultSet addedLogsResult = dbClient . executeGetResult ( SQL_QUERY_LOG_INFO ) ; while ( addedLogsResult . next ( ) ) { log . debug ( addedLogsResult . getString ( 3 ) ) ; } DBUtils . releaseResultSet ( addedLogsResult ) ; } } catch ( Exception ex ) { log . error ( "Fail<seq2seq4repair_space>to<seq2seq4repair_space>build<seq2seq4repair_space>log<seq2seq4repair_space>miner.<seq2seq4repair_space>Error<seq2seq4repair_space>message:" ) ; log . error ( ex . getMessage ( ) ) ; throw new RuntimeException ( ( "Fail<seq2seq4repair_space>to<seq2seq4repair_space>build<seq2seq4repair_space>log<seq2seq4repair_space>miner.<seq2seq4repair_space>Error<seq2seq4repair_space>message:" + ( ex . getMessage ( ) ) ) ) ; } } @ Override public void start ( ) { } @ Override public ResultSet query ( String sql ) { } @ Override public void end ( ) { } @ Override public void sync ( RedoValue value ) throws Exception { } }

Fix:
if ( redolog . enableSupplementalLog ( ) ) {