Bug 573106 - Package name containing 'aspect' leads to false problem alarm in aspect code editor
Summary: Package name containing 'aspect' leads to false problem alarm in aspect code ...
Status: NEW
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: 2.2.4   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: 2.2.3   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-23 09:08 EDT by Alexander Kriegisch CLA
Modified: 2021-04-23 09:08 EDT (History)
0 users

See Also:


Attachments
Error message displayed in AJDT aspect code editor (12.35 KB, image/png)
2021-04-23 09:08 EDT, Alexander Kriegisch CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kriegisch CLA 2021-04-23 09:08:47 EDT
Created attachment 286215 [details]
Error message displayed in AJDT aspect code editor

See screenshot: If we have a pointcut designator like

within(org.acme.aspect..*)

then in Eclipse the aspect code editor underlines 'aspect' with red squiggles and displays an error hint (white "X" on red background) with the message:

Syntax error on token "class", delete this token

Obviously the parser in AJDT mistakes the reserved native AspectJ keyword 'aspect' for an aspect class designator, even though it appears within a pointcut designator where it is legal and also gets compiled without any problem.

@Andy, I also see this after upgrading AJDT to the 4.19 (2021-03) Eclipse API, so it is probably an old cosmetic bug, but still annoying because of the cryptic error message.