Bug 74562 - [jdt-parser] Unexpected syntax error with fields named "after" or "before"
Summary: [jdt-parser] Unexpected syntax error with fields named "after" or "before"
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.2.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.5.0 M3   Edit
Assignee: Adrian Colyer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 83310 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-22 11:00 EDT by Matthew Webster CLA
Modified: 2005-08-19 08:46 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Webster CLA 2004-09-22 11:00:30 EDT
The following class compiles with javac but fails with ajc:

	Syntax error on token "after", Identifier expected	Test.java
	Syntax error on token "before", Identifier expected	Test.java

public class Test {

	private Test before;
	private Test after;
	
	public void test () {
		before.after = after;
		after.before = before;
		before = new Test();
		after = new Test();
	}
}
Comment 1 Adrian Colyer CLA 2005-03-23 08:41:41 EST
to look at whilst we have the parser open for surgery in aj5m3
Comment 2 Adrian Colyer CLA 2005-08-19 08:41:07 EDT
fix checked in, now compiles without complaint.
Comment 3 Adrian Colyer CLA 2005-08-19 08:46:19 EDT
*** Bug 83310 has been marked as a duplicate of this bug. ***