Bug 128840 - [compiler] Wrong warning for unnecessary semicolon as else statement
Summary: [compiler] Wrong warning for unnecessary semicolon as else statement
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-21 11:47 EST by Markus Keller CLA
Modified: 2006-03-27 15:26 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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