Bug 6932 - Increment statement in for loop contains trailing comments
Summary: Increment statement in for loop contains trailing comments
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-14 06:57 EST by Dirk Baeumer CLA
Modified: 2002-01-14 10:36 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 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.