Bug 128539 - [DOM][AST] Multiple locals not supported in switch statements
Summary: [DOM][AST] Multiple locals not supported in switch statements
Status: RESOLVED DUPLICATE of bug 109646
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.2 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-19 04:07 EST by Joachim Lusiardi CLA
Modified: 2006-02-21 19:42 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joachim Lusiardi CLA 2006-02-19 04:07:32 EST
The following code shows the problem:
		switch (state) {
			case 4:
			double M0,M1;
		}
The VariableDeclarationStatement for M0 and M1 should have M0 and M1 as VariableDeclarationFragments. Instead it splits into 2 VariableDeclarationStatements, one for M0 and one for M1. They have both the same startPosition an the same length.
Comment 1 Olivier Thomann CLA 2006-02-19 12:06:57 EST
I tried with M5 build and I could not reproduce.
Could you please specify your steps to reproduce and your build id?
Comment 2 Olivier Thomann CLA 2006-02-19 14:21:40 EST
Closing.
Reopen once you provided the required information.
Added regression tests org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2.test0632/0633
Comment 3 Joachim Lusiardi CLA 2006-02-19 17:31:00 EST
It seems to work with 3.2M5. Sorry for bothering you with a bug already fixed :-/
Comment 4 Olivier Thomann CLA 2006-02-19 21:47:24 EST
Reopen to close.
It looks like bug 109646. I'd like to get the build id to be sure this is a dup.
Thanks.
Comment 5 Joachim Lusiardi CLA 2006-02-20 02:22:45 EST
it works with build id 20060217-1115. the code from bug #109646 also works.
Comment 6 Olivier Thomann CLA 2006-02-20 09:24:28 EST
I wanted to know what was the build that you used when you reported the defect.
Thanks.
Comment 7 Olivier Thomann CLA 2006-02-20 16:46:23 EST
Closing as dup of bug 109646.

*** This bug has been marked as a duplicate of 109646 ***
Comment 8 Joachim Lusiardi CLA 2006-02-21 18:12:37 EST
the build was 
Version: 3.1.0
Build id: I20050627-1435
i know its pretty old, but downloading the newest over modem .... you know it ;-)
Comment 9 Olivier Thomann CLA 2006-02-21 19:42:31 EST
Thanks. This confirms it is a dup of bug 109646.