Bug 24453

Summary: ast: problems with missing ParenthesizedExpression nodes
Product: [Eclipse Project] JDT Reporter: Adam Kiezun <akiezun>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: P2    
Version: 2.0   
Target Milestone: 2.1 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.