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 #577513] Thu, 15 April 2004 15:48
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
Previous Topic:Imports from other projects don't work on 3.0M8 & AJDT 1.1.7
Next Topic:Why is weaving in aspects from another project not working?
Goto Forum:
  


Current Time: Sat Apr 20 04:50:09 GMT 2024

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

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

Back to the top