Bug 128961

Summary: AST: errors with parentheses expressions in for-init initialisers
Product: [Eclipse Project] JDT Reporter: Joachim Lusiardi <shing19m>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M6   
Hardware: PC   
OS: Linux   
Whiteboard:

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