Bug 128840

Summary: [compiler] Wrong warning for unnecessary semicolon as else statement
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Markus Keller CLA 2006-02-21 11:47:19 EST
I20060217-1115

        if (true)
            ; // Warning: Empty control-flow statement
        else
            ; // Warning: Unnecessary semicolon

Expected: second warning should also be 'Empty control-flow statement'
Comment 1 Olivier Thomann CLA 2006-02-24 10:54:02 EST
Fixed and released in HEAD.
Added regression test org.eclipse.jdt.core.tests.compiler.regression.FlowAnalysisTest.test022
Comment 2 Jerome Lanneluc CLA 2006-03-27 15:26:05 EST
Verified for 3.2 M6 using build I20060327-0010