Bug 24453 - ast: problems with missing ParenthesizedExpression nodes
Summary: ast: problems with missing ParenthesizedExpression nodes
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P2 critical (vote)
Target Milestone: 2.1 M2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-07 10:59 EDT by Adam Kiezun CLA
Modified: 2002-10-17 10:01 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 Adam Kiezun CLA 2002-10-07 10:59:00 EDT
1. 
class A{
    void f(){
        int i= 1 + (2 + 3) + 4;
    }
}
2+3 is not sitting inside a ParenthesizedExpression node

2. (probably caused by the same bug)
class A{
    void f(){
        int i= (1 + 2) + 3;
    }
}

1+2 is not inside a ParenthesizedExpression 
moreover, the InfixExpression it is includes spans over the following: 
1 + 2) + 3
(note the missing '(' at the beginning)
Comment 1 Olivier Thomann CLA 2002-10-07 11:21:18 EDT
I will investigate.
Comment 2 Olivier Thomann CLA 2002-10-07 12:07:07 EDT
This is crucial and needs a fix asap. I am working on it.
Comment 3 Olivier Thomann CLA 2002-10-07 14:18:45 EDT
Fixed and released in HEAD. Regression tests added.
Comment 4 David Audel CLA 2002-10-17 10:01:44 EDT
Verified.