Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » Erroneous error marking in editor for introduced methods
Erroneous error marking in editor for introduced methods [message #59515] Fri, 16 December 2005 13:35 Go to next message
Eclipse User
Originally posted by: benjamin.mesing.informatik.uni-rostock.de

Hello,

I have a fairly large project and make use of introductions. Sometimes when
I use the introduced methods I get an error marker indicating
"The method xyz() is undefined in type Abc"
where xyz() is a method introduced into Abc by an aspect.
The AspectJ compiler compiles fine though.

Is this issue known or reproducible or should I try to create a small
test-case where this appears? I was not able to find such a bug in the bug
database.

AJDT 1.3.0 Build id: 1.5.0.20051214130641
AspectJ version 1.5.0 RC1
Eclipse 3.1.1 Build id: M20050929-0840

Best regards

Ben
Re: Erroneous error marking in editor for introduced methods [message #59563 is a reply to message #59515] Fri, 16 December 2005 13:47 Go to previous messageGo to next message
Adrian Colyer is currently offline Adrian Colyer
Messages: 61
Registered: July 2009
Member
This is a known limitation of using the Java editor to work with types
that rely on the AspectJ type system. The early-error indication you see
is actually quite harmless (but irritating) :- the project will compile
and run successfully. If you open the file with the AspectJ/Java editor
("open with" on the context menu in the package explorer) the error
indication will go away because that editor *does* understand the
AspectJ type system.

Benjamin Mesing wrote:
> Hello,
>
> I have a fairly large project and make use of introductions. Sometimes when
> I use the introduced methods I get an error marker indicating
> "The method xyz() is undefined in type Abc"
> where xyz() is a method introduced into Abc by an aspect.
> The AspectJ compiler compiles fine though.
>
> Is this issue known or reproducible or should I try to create a small
> test-case where this appears? I was not able to find such a bug in the bug
> database.
>
> AJDT 1.3.0 Build id: 1.5.0.20051214130641
> AspectJ version 1.5.0 RC1
> Eclipse 3.1.1 Build id: M20050929-0840
>
> Best regards
>
> Ben
Re: Erroneous error marking in editor for introduced methods [message #59587 is a reply to message #59515] Fri, 16 December 2005 14:08 Go to previous message
Eclipse User
Originally posted by: benjamin.mesing.informatik.uni-rostock.de

I'm feeling so embarrassed because the topic was discussed in this newsgroup
before. Opening the class in the AJDT editor solves the issue.

Best regards

Ben
Re: Erroneous error marking in editor for introduced methods [message #591346 is a reply to message #59515] Fri, 16 December 2005 13:47 Go to previous message
Adrian Colyer is currently offline Adrian Colyer
Messages: 61
Registered: July 2009
Member
This is a known limitation of using the Java editor to work with types
that rely on the AspectJ type system. The early-error indication you see
is actually quite harmless (but irritating) :- the project will compile
and run successfully. If you open the file with the AspectJ/Java editor
("open with" on the context menu in the package explorer) the error
indication will go away because that editor *does* understand the
AspectJ type system.

Benjamin Mesing wrote:
> Hello,
>
> I have a fairly large project and make use of introductions. Sometimes when
> I use the introduced methods I get an error marker indicating
> "The method xyz() is undefined in type Abc"
> where xyz() is a method introduced into Abc by an aspect.
> The AspectJ compiler compiles fine though.
>
> Is this issue known or reproducible or should I try to create a small
> test-case where this appears? I was not able to find such a bug in the bug
> database.
>
> AJDT 1.3.0 Build id: 1.5.0.20051214130641
> AspectJ version 1.5.0 RC1
> Eclipse 3.1.1 Build id: M20050929-0840
>
> Best regards
>
> Ben
Re: Erroneous error marking in editor for introduced methods [message #591359 is a reply to message #59515] Fri, 16 December 2005 14:08 Go to previous message
Eclipse User
Originally posted by: benjamin.mesing.informatik.uni-rostock.de

I'm feeling so embarrassed because the topic was discussed in this newsgroup
before. Opening the class in the AJDT editor solves the issue.

Best regards

Ben
Previous Topic:Erroneous error marking in editor for introduced methods
Next Topic:AJDT and workspace JRE
Goto Forum:
  


Current Time: Tue Jul 22 19:35:10 EDT 2014

Powered by FUDForum. Page generated in 0.02029 seconds