Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » white space in AspectJ 1.1.4
white space in AspectJ 1.1.4 [message #33223] Thu, 15 April 2004 15:48 Go to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
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 #33260 is a reply to message #33223] Thu, 15 April 2004 15:50 Go to previous messageGo to next message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
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 #33369 is a reply to message #33260] Thu, 15 April 2004 19:28 Go to previous message
Eclipse UserFriend
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 15:50 Go to previous message
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
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 19:28 Go to previous message
Andrew Clement is currently offline Andrew ClementFriend
Messages: 162
Registered: July 2009
Senior Member
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
Previous Topic:AJDT 1.1.7 available - for Eclipse 3.0M8
Next Topic:Manually uninstalling old versions of AJDT
Goto Forum:
  


Current Time: Tue Apr 16 13:47:38 GMT 2024

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

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

Back to the top