Skip to main content



      Home
Home » Language IDEs » AspectJ » "aspect" reserved word underlined as an error
"aspect" reserved word underlined as an error [message #4623] Tue, 24 September 2002 20:28 Go to next message
Eclipse UserFriend
Hi,

I've just created an AspectJ project in eclipse (eclipse 2.0.1, aspectJ
0.5.2/1.0.6). I have one class and one aspect in my project.

For the aspect file, I can see that the aspect keyword is underlined with
red (as an error), but my project still compiles and runs correctly. Can you
help me to get rid of that annoying red underlining?

Thanks,
Dan
Re: "aspect" reserved word underlined as an error [message #4692 is a reply to message #4623] Tue, 24 September 2002 20:32 Go to previous messageGo to next message
Eclipse UserFriend
more details:

when I move my mouse over the aspect keyword, it says

Syntax error in token "aspect", "interface", "class" expected

The aspect file is edited in AspectJ/Java editor.
Dan
Re: "aspect" reserved word underlined as an error [message #4829 is a reply to message #4623] Wed, 25 September 2002 02:38 Go to previous message
Eclipse UserFriend
Originally posted by: hcs33.egon.gyaloglo.hu

Hi Dan,

From the AJDT 0.5.2 Release Notes:

"
The early problem indication feature of the JDT underlines potential errors
in the editor as you type (before compilation). This feature is not
AspectJ-aware. S a result, AspectJ keywords may be highlighted as errors by
underlining with a req "squiggle"(see below):
....
This feature is perfectly harmless, but can be irritating. You can disable
the early error indication by selectng "Preferences" from the "Window" menu
and then expanding the "Java" node. Click on "Editor" and then select the
"Problem Indication" tab. Finally, deselect the "Show problems before
compiling" option and press apply.
"

So this red line is really annoying but it is perfectly harmless. I think
that later AJDT developers will correct this, as correct the code completion
in aspects (currently only code templates are present).

Regards,
Csaba Horv
Re: "aspect" reserved word underlined as an error [message #561652 is a reply to message #4623] Tue, 24 September 2002 20:32 Go to previous message
Eclipse UserFriend
more details:

when I move my mouse over the aspect keyword, it says

Syntax error in token "aspect", "interface", "class" expected

The aspect file is edited in AspectJ/Java editor.
Dan
Re: "aspect" reserved word underlined as an error [message #561690 is a reply to message #4623] Wed, 25 September 2002 02:38 Go to previous message
Eclipse UserFriend
Originally posted by: hcs33.egon.gyaloglo.hu

Hi Dan,

From the AJDT 0.5.2 Release Notes:

"
The early problem indication feature of the JDT underlines potential errors
in the editor as you type (before compilation). This feature is not
AspectJ-aware. S a result, AspectJ keywords may be highlighted as errors by
underlining with a req "squiggle"(see below):
....
This feature is perfectly harmless, but can be irritating. You can disable
the early error indication by selectng "Preferences" from the "Window" menu
and then expanding the "Java" node. Click on "Editor" and then select the
"Problem Indication" tab. Finally, deselect the "Show problems before
compiling" option and press apply.
"

So this red line is really annoying but it is perfectly harmless. I think
that later AJDT developers will correct this, as correct the code completion
in aspects (currently only code templates are present).

Regards,
Csaba Horv
Previous Topic:Obfuscating generated AspectJ code
Next Topic:Timeframe for debugger linking to source?
Goto Forum:
  


Current Time: Fri May 09 11:39:30 EDT 2025

Powered by FUDForum. Page generated in 0.06557 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top