white space in AspectJ 1.1.4 [message #33223] |
Thu, 15 April 2004 11:48  |
Eclipse User |
|
|
|
I first almost couldn't believe it, but in AspectJ 1.1.4 (on
XDE/Eclipse 2.0.2) the "compileability" of aspects seems to depend on
the white space, i.e. the line structure to be precise! I have a case
here, where simply splitting a pointcut definition across several
lines made that this thing does not compile.
E.g. it makes a difference whether I write
...
before(MyType t, boolean f): target(t) && call(*
MyType.setSomeAttribute(boolean)) && args(f)) {...
...
which compiles while:
...
before(MyType t, boolean f): target(t)
&& call(*
MyType.setSomeAttribute(boolean))
&& args(f)) {...
...
does not!
So beware, when trying your first steps! This kind of "effects" can be
pretty time consuming (as I just had to find out...), because as a
beginner of course one always assumes the errors to be in your own
code.
Luckily version 1.1.7 doesn't seem to have that bug any more, but alas
it behaves otherwise a bit odd on my 3.0M8...
Michael
|
|
|
|
Re: white space in AspectJ 1.1.4 [message #33369 is a reply to message #33260] |
Thu, 15 April 2004 15:28  |
Eclipse User |
|
|
|
Originally posted by: clemas.uk.ibm.com
Hi Michael,
In the first post on this thread, you mentioned 1.1.7 behaving strangely
on 3.0M8 - I've just released the proper version through the proper update
site (I know some of you installed an almost final version of 1.1.7 from
CVS). Can you install the final version of 1.1.7 and let me know if you
see any strange behavior?
thanks,
Andy.
======
Andy Clement
AJDT Development
|
|
|
Re: white space in AspectJ 1.1.4 [message #577536 is a reply to message #33223] |
Thu, 15 April 2004 11:50  |
Eclipse User |
|
|
|
Ooops, I just noticed that my news-reader wrapped those lines. Just in
case: The first example is all one one line, the second example is on
three lines.
"Michael Moser" <mmo@zurich.ibm.com> wrote in message
news:c5mai8$b54$1@eclipse.org...
> ...
> before(MyType t, boolean f): target(t) && call(*
> MyType.setSomeAttribute(boolean)) && args(f)) {...
> ...
> which compiles while:
> ...
> before(MyType t, boolean f): target(t)
> && call(*
> MyType.setSomeAttribute(boolean))
> && args(f)) {...
> ...
|
|
|
Re: white space in AspectJ 1.1.4 [message #577668 is a reply to message #33260] |
Thu, 15 April 2004 15:28  |
Eclipse User |
|
|
|
Hi Michael,
In the first post on this thread, you mentioned 1.1.7 behaving strangely
on 3.0M8 - I've just released the proper version through the proper update
site (I know some of you installed an almost final version of 1.1.7 from
CVS). Can you install the final version of 1.1.7 and let me know if you
see any strange behavior?
thanks,
Andy.
======
Andy Clement
AJDT Development
|
|
|
Powered by
FUDForum. Page generated in 0.06276 seconds