Bug 6932

Summary: Increment statement in for loop contains trailing comments
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dirk Baeumer CLA 2001-12-14 06:57:14 EST
for (int i= 0; i < 10; i++/**/)
  ...

Source end of the postfix expression is the last slash of /**/ not the + of i++
Comment 1 Olivier Thomann CLA 2001-12-17 10:28:28 EST
Why don't you want the trailing comment to be part of the expression?
Comment 2 Olivier Thomann CLA 2002-01-11 10:44:41 EST
This will be fixed in the new parser I intent to release for the next 
integration build. If you have code that is a workaround of this problem, let me 
know.
Comment 3 Olivier Thomann CLA 2002-01-11 15:13:46 EST
Fixed and released in HEAD. The comment is no longer part of the postfix 
expression.