Based on your comment above, it looks like you want one project to use both the AspectJ linker and the Scala constructor. It's impossible. Each of them passes its own compiler, and the two compilers are not compatible (yet). The Scala compiler can compose Java and Scala code, and the AspectJ compiler can co-create AspectJ and Java code, but that is.
If you want aspects to apply to your Scala code, you must separate your AspectJ and Scala code into different projects, and then add the Scala project to the inpath of your AspectJ project.
This is the same thing you will need to do if you are compiling from ant or on the command line.
Andrew Eisenberg
source share