Bug 74562

Summary: [jdt-parser] Unexpected syntax error with fields named "after" or "before"
Product: [Tools] AspectJ Reporter: Matthew Webster <matthew_webster>
Component: CompilerAssignee: Adrian Colyer <adrian.colyer>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ceccato
Version: 1.2.1   
Target Milestone: 1.5.0 M3   
Hardware: All   
OS: All   
Whiteboard:

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. ***