I have this very simple aspect:
public aspect MyAspect1 {
public static void main(String[] args) {
System.out.println("hello world");
MyObject1.f2();
}
before() : call(* *..f2()) {
System.out.println("before hello world");
}
before() : execution(* *..f2()) {
System.out.println("before execution hello world");
}
}
that prints:
before execution hello world
before hello world
before execution hello world
hello there2
and this scala definition:
object MyObject1 {
def main(args : Array[String]) : Unit = {
println("hello there")
}
def f2() : Unit = {
println("hello there2")
}
}
both call and execution work, however, when I make an edit the Scala file
looks broken until I do a clean compile
in my aspectj project, I have the scala project in the inpath
and the run configuration includes the scala-library.jar explicitly
this is the eclipse 3.5.2, ajdt dev, scala nightly
Mike
On Thu, Apr 22, 2010 at 5:24 PM, Kevin Shale <[email protected]> wrote:
> I'll have to do more experimenting, Mike, because I tested your scenario
> and the
> AspectJ project did not pick up the binary class files from the Scala
> project.
>
> I tried this with 3.5.2 and 3.6 M6 but the outcome was the same.
> Maybe simple execution pointcuts don't work on scala classes as they do
> on java classes? Most likely my AspectJ project configuration is faulty.
>
> I would like to say that it has become a difficult battle for me trying to
> harmonize
> these two very great languages! But it has to be done!
>
> Miles, I don't see a compatibility matrix at
> http://scala-ide.assembla.com/wiki/show/scala-ide
>
> Best, Kevin
>
> I added a Scala project to the inpath of my AspectJ project and created
>> some
>> advice on a Scala class and it worked! The only thing I had to do as add
>> the Scala-library.jar to my AspectJ project manually, even though it
>> should
>> have picked it up from the exports of the Scala project. Is this a bug
>> somewhere?
>>
>
> Mike
>>
>
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
--
Michael D. McCray
(314) 596-AOP1
Consultant - Technology Partners, Inc.
President - Object Nirvana, Inc.
Maker of
My People Database
- automation for what you do with your friends and family, and a place to
store your stories and information.
Website: http://www.mypeopledatabase.com/
Transcendental Beans Database
- an aspect oriented database system,
the future of data storage
Website: http://www.objectnirvana.com
Open source version: http://transcendentalbeans.dev.java.net/
Tweat Market - Twitter Dating Client
http://www.tweatmarket.com/
Blog: http://aodbms.blogspot.com
Email: [email protected]
Twitter: http://twitter.com/MichaelDMcCray
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users