Bug 23362 - DOM: incorrect length for InfixExpression.
Summary: DOM: incorrect length for InfixExpression.
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 critical (vote)
Target Milestone: 2.1 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-10 10:28 EDT by Dirk Baeumer CLA
Modified: 2002-09-19 11:02 EDT (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 2002-09-10 10:28:55 EDT
Latest Head 2002/09/10.

package test1;
public class E {
    public void foo() {
        i= (1 + 2) * 3;
    }
}

The infix expression for "1 + 2" has a length of 3. It should be 5.
Comment 1 Olivier Thomann CLA 2002-09-10 11:24:48 EDT
Fixed and released in 2.1 stream.
Comment 2 David Audel CLA 2002-09-19 04:29:41 EDT
Verified.
Comment 3 Olivier Thomann CLA 2002-09-19 11:02:51 EDT
Regression test added (test0398)