Bug 159268 - [parsing]Problems accessing before[] , after[] arrays
Summary: [parsing]Problems accessing before[] , after[] arrays
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.5.2   Edit
Hardware: PC Windows 2000
: P3 minor (vote)
Target Milestone: 1.6.1   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-29 08:30 EDT by Tristan de Inés CLA
Modified: 2008-06-10 15:12 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tristan de Inés CLA 2006-09-29 08:30:39 EDT
Accessing arrays named "before" or "after" (possibly other AspectJ keywords affected as well) causes problems.

Example:
Object[] before;
before = new Object[10];
before[0].toString(); // Eclipse: Syntax error on token "before", invalid Expression

before.toString(); // works fine


AJDT Version: 1.4.0
Build id: 20060629124300
AspectJ version: 1.5.2
Eclipse 3.2.0
JRE 1.5.0_08
Comment 1 Matt Chapman CLA 2006-10-02 06:08:11 EDT
Passing over to compiler
Comment 2 Andrew Clement CLA 2008-06-10 15:12:13 EDT
fix committed - will be in next AspectJ dev build then AJDT after that. I had to modify the grammar to support it.