Error: The attribute argNames is undefined [message #58934] |
Thu, 01 December 2005 20:23  |
Eclipse User |
|
|
|
Hello!
All of my aspects were compiling very well a few days ago.
But it seems the last ajdt release (or maybe since one or two days as it
is updated every day) now fails to compile them.
It marks an error in front of every advice telling me that
"The attribute argNames is undefined for the annotation type Around"
and a similar message for the other kinds of advice.
I'm using the following version of AJDT:
Version: 1.3.0
Build id: 20051201090854
AspectJ version: 1.5.0.20051130133549
Did the syntax for advices changed or do you think it is a bug ??
Thanks for your help!
Didier.
|
|
|
|
|
Re: Error: The attribute argNames is undefined [message #59062 is a reply to message #59037] |
Mon, 12 December 2005 12:25  |
Eclipse User |
|
|
|
Originally posted by: andrew.acooke.org
perfect - thanks! it was indeed a aspectjrt.jar from a previous version
(i need to work out how to use eclipse better).
cheers,
andrew
ps it was during the ant build, which had a classpath that differed from
eclipse.
pps thanks for the very quick reply - i posted, went down the road for a
beer and sandwich, and then found your answer. :o)
|
|
|
Re: Error: The attribute argNames is undefined [message #591101 is a reply to message #58934] |
Mon, 12 December 2005 10:57  |
Eclipse User |
|
|
|
Originally posted by: andrew.acooke.org
did you find a solution to this?
i have been having problems with my system (win2000) being unstable, so
updated to eclipse 3.1.1, java 1.5.0-06, and the latest ajdt build
(20051208103628), and now see the same problem.
andrew
|
|
|
Re: Error: The attribute argNames is undefined [message #591113 is a reply to message #59012] |
Mon, 12 December 2005 11:16  |
Eclipse User |
|
|
|
andrew cooke wrote:
>
> did you find a solution to this?
>
> i have been having problems with my system (win2000) being unstable, so
> updated to eclipse 3.1.1, java 1.5.0-06, and the latest ajdt build
> (20051208103628), and now see the same problem.
>
> andrew
>
We discovered that this problem occurs if there are multiple versions of
aspectjrt.jar around. In Didier's case there was a version in the AJEER
framework he was also using. The argNames annotation value only exists
in very recent aspectjrt.jar files. Can you try removing/readding the
aspectj nature to your projects and check it picks up the latest (i.e.
the version from the latest org.aspectj.runtime plugin). Do you have a
copy of aspectjrt.jar anywhere else accessible by your project? Is it
breaking when you build or when you run?
Andy.
|
|
|
Re: Error: The attribute argNames is undefined [message #591125 is a reply to message #59037] |
Mon, 12 December 2005 12:25  |
Eclipse User |
|
|
|
Originally posted by: andrew.acooke.org
perfect - thanks! it was indeed a aspectjrt.jar from a previous version
(i need to work out how to use eclipse better).
cheers,
andrew
ps it was during the ant build, which had a classpath that differed from
eclipse.
pps thanks for the very quick reply - i posted, went down the road for a
beer and sandwich, and then found your answer. :o)
|
|
|
Powered by
FUDForum. Page generated in 0.05242 seconds