Summary: | [parsing] Misleading error message for around advice without return type | ||
---|---|---|---|
Product: | [Tools] AspectJ | Reporter: | Macneil Shonle <mshonle> |
Component: | Compiler | Assignee: | Adrian Colyer <adrian.colyer> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | aclement |
Version: | 1.2 | ||
Target Milestone: | 1.6.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Macneil Shonle
2004-05-26 16:13:06 EDT
didnt get to it whilst the parser was open for 1.6.0m1 Hurrah!!! I fixed this, whilst I had the grammar open to address privileged generic aspects (*shudder*). You now get a much nicer message actually indicating what the problem is! D:\Andy\eclipse_ws\aspectj_ws\tests\bugs161\pr64222\C.java:6 [error] Syntax error, insert "return type" to complete around advice declaration around(): call(int C.dummy()) { I had to add a recovery rule to the grammar that recognizes the bad pattern of tokens that are missing a return type. |