Bug 9040

Summary: DOM/AST: why is the left hand side of an assignment an expression
Product: [Eclipse Project] JDT Reporter: Dirk Baeumer <dirk_baeumer>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dirk Baeumer CLA 2002-02-04 11:34:02 EST
Why is the left hand side of an assignment of type expression and not of type 
Name. I can't come up with a case where the left hand side can be anything else 
than an Name. This would make treating assignment easier.
Comment 1 Olivier Thomann CLA 2002-02-04 11:42:02 EST
I'll see with Jim why he chooses Expression instead of Name. Keep you inform.
Comment 2 Jim des Rivieres CLA 2002-02-04 13:30:11 EST
JLS2 15.26 - The left hand side is a name, field access, or array access.

Name cannot cover array access, although it can the other 2. That's why its 
Expression.
Comment 3 Dirk Baeumer CLA 2002-02-05 11:12:24 EST
OK for me to close
Comment 4 Olivier Thomann CLA 2002-02-05 11:24:24 EST
Close.