Summary: | In normal Java Class: JavaIdentifierNoAround expected after this token | ||||||
---|---|---|---|---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Eric Bodden <eric> | ||||
Component: | Compiler | Assignee: | Adrian Colyer <adrian.colyer> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | minor | ||||||
Priority: | P3 | ||||||
Version: | 1.2.1 M1 | ||||||
Target Milestone: | 1.5.0 M3 | ||||||
Hardware: | PC | ||||||
OS: | Windows XP | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Eric Bodden
2004-11-10 12:10:35 EST
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. |