Bug 109333

Summary: [DOM/AST] OR_OR and AND_AND expression are not converted to an infix expression using extended operands
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed fix
none
Regression test none

Description Olivier Thomann CLA 2005-09-12 16:34:46 EDT
The following code doesn't create an infix expression with extended operands. It
creates a tree of infix expressions.
The specs of the InfixExpression class clearly states that extended operands
must be used as much as possible.
The fix is trivial.
Comment 1 Olivier Thomann CLA 2005-09-12 17:06:16 EDT
Created attachment 27054 [details]
Proposed fix
Comment 2 Olivier Thomann CLA 2005-09-12 17:07:15 EDT
Created attachment 27055 [details]
Regression test

Needs to be applied on org.eclipse.jdt.core.tests.dom
Comment 3 Olivier Thomann CLA 2005-09-12 17:21:09 EDT
Fixed and released in HEAD.
Added regression test in
org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2.test616/617.
Comment 4 Maxime Daniel CLA 2005-09-20 12:31:42 EDT
Verified for 3.2 M2 on build Build id: I20050920-0010.
Comment 5 Olivier Thomann CLA 2005-09-20 13:03:39 EDT
Verified in I20050920-0010 for 3.2M2