Bug 128961 - AST: errors with parentheses expressions in for-init initialisers
Summary: AST: errors with parentheses expressions in for-init initialisers
Status: VERIFIED FIXED
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-22 06:56 EST by Joachim Lusiardi CLA
Modified: 2006-03-28 08:10 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 Joachim Lusiardi CLA 2006-02-22 06:56:07 EST
in the following code 
	for( int i = (1); ; ) {
	}
occurs an error with the part "i = (1)". The AST reports the length 6 whereas i count a length of 7.
No error occurs if the parenthesis are left out.The error occurs in 
M20060118-1600
and
I20060217-1115
Comment 1 Olivier Thomann CLA 2006-02-24 14:58:28 EST
Fixed and released in HEAD.
Added regression tests in org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2.test0637/0638/0639.
Comment 2 Jerome Lanneluc CLA 2006-03-28 08:10:12 EST
Verified for 3.2 M6 using build I20060328-0010