Buggy code:
public class WhileStatement extends Statement { public Expression condition ; public Statement action ; private Label breakLabel ; private Label continueLabel ; int preCondInitStateIndex = - 1 ; int condIfTrueInitStateIndex = - 1 ; int mergedInitStateIndex = - 1 ; public WhileStatement ( Expression condition , Statement action , int s , int e ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { breakLabel = new Label ( ) ; continueLabel = new Label ( ) ; Constant cst = this . condition . constant ; boolean isConditionTrue = ( cst != ( NotAConstant ) ) && ( ( cst . booleanValue ( ) ) == true ) ; boolean isConditionFalse = ( cst != ( NotAConstant ) ) && ( ( cst . booleanValue ( ) ) == false ) ; cst = this . condition . optimizedBooleanConstant ( ) ; boolean isConditionOptimizedTrue = ( cst != ( NotAConstant ) ) && ( ( cst . booleanValue ( ) ) == true ) ; boolean isConditionOptimizedFalse = ( cst != ( NotAConstant ) ) && ( ( cst . booleanValue ( ) ) == false ) ; preCondInitStateIndex = currentScope . methodScope ( ) . recordInitializationStates ( flowInfo ) ; LoopingFlowContext condLoopContext ; FlowInfo postCondInfo = this . condition . analyseCode ( currentScope , ( condLoopContext = new LoopingFlowContext ( flowContext , this , null , null , currentScope ) ) , flowInfo ) ; LoopingFlowContext loopingContext ; FlowInfo actionInfo ; if ( ( ( action ) == null ) || ( ( action . isEmptyBlock ( ) ) && ( ( currentScope . environment ( ) . options . complianceLevel ) <= ( JDK1_3 ) ) ) ) { condLoopContext . complainOnFinalAssignmentsInLoop ( currentScope , postCondInfo ) ; if ( isConditionTrue ) { return FlowInfo . DEAD_END ; } else { FlowInfo mergedInfo = postCondInfo . initsWhenFalse ( ) . unconditionalInits ( ) ; if ( isConditionOptimizedTrue ) { mergedInfo . setReachMode ( FAKE_REACHABLE ) ; } mergedInitStateIndex = currentScope . methodScope ( ) . recordInitializationStates ( mergedInfo ) ; return mergedInfo ; } } else { loopingContext = new LoopingFlowContext ( flowContext , this , breakLabel , continueLabel , currentScope ) ; if ( isConditionFalse ) { actionInfo = FlowInfo . DEAD_END ; } else { actionInfo = postCondInfo . initsWhenTrue ( ) . copy ( ) ; if ( isConditionOptimizedFalse ) { actionInfo . setReachMode ( FAKE_REACHABLE ) ; } } condIfTrueInitStateIndex = currentScope . methodScope ( ) . recordInitializationStates ( postCondInfo . initsWhenTrue ( ) ) ; if ( ! ( actionInfo . complainIfUnreachable ( action , currentScope , false ) ) ) { actionInfo = action . analyseCode ( currentScope , loopingContext , actionInfo ) ; } if ( ( ! ( actionInfo . isReachable ( ) ) ) && ( ! ( loopingContext . initsOnContinue . isReachable ( ) ) ) ) { continueLabel = null ; } else { condLoopContext . complainOnFinalAssignmentsInLoop ( currentScope , postCondInfo ) ; loopingContext . complainOnFinalAssignmentsInLoop ( currentScope , actionInfo ) ; } } FlowInfo mergedInfo ; <START_BUG> if ( isConditionTrue ) { <END_BUG> mergedInitStateIndex = currentScope . methodScope ( ) . recordInitializationStates ( ( mergedInfo = loopingContext . initsOnBreak ) ) ; return mergedInfo ; } mergedInfo = postCondInfo . initsWhenFalse ( ) . unconditionalInits ( ) . mergedWith ( loopingContext . initsOnBreak ) ; if ( isConditionOptimizedTrue && ( ( continueLabel ) == null ) ) { mergedInfo . setReachMode ( FAKE_REACHABLE ) ; } mergedInitStateIndex = currentScope . methodScope ( ) . recordInitializationStates ( mergedInfo ) ; return mergedInfo ; } public void generateCode ( BlockScope currentScope , CodeStream codeStream ) { } public void resetStateForCodeGeneration ( ) { } public void resolve ( BlockScope scope ) { } public String toString ( int tab ) { } public void traverse ( IAbstractSyntaxTreeVisitor visitor , BlockScope blockScope ) { } }

Fix:
if ( isConditionOptimizedTrue ) {