Community
Participate
Working Groups
Hi. In the enclosed project I am getting the following compilation error which occurs in a normal Java compilation unit (no aspect): Severity Description Resource In Folder Location Creation Time 2 Syntax error on token "foo", JavaIdentifierNoAround expected after this token Main.java AspectJTest-RV/src/a line 7 November 10, 2004 5:51:13 PM
Created attachment 15780 [details] Project giving the appropriate erroron compilation
Addition just to make things clear: Of course the code in Class a.Main cannot compile correctly since I *do* have a syntax error (code is not inside a method declaration), but the error message is not really appropriate here.
for investigation in aj5m3 whilst we have the parser open...
Suprisingly hard to get the recovery rules to do the right thing for us. It now says: "Syntax error on tokens, valid member declaration expected instead" at the offending line. It's a lot more helpful than the previous message, and would involve a lot of work to substantially improve the message any further than this so I'm going to close this out there.