AspectJ related issues

Hi,
I added a aspect to a sample project with 1 class and 1 aspect.

Aspect code
-


public aspect Log{
pointcut methodEntry() : execution(* Hello.printHello(..));

before() : methodEntry() {
System.out.println("in the hello class before method" + thisJoinPoint.getSignature().toString());
}
}


and i get this error

Information: 1 error
Information: 0 warnings
Error: Error instrumenting classes: null


Am i missing something.


Thanks
Sal

4 comments
Comment actions Permalink

Hi,
But this works, replaced the execution with call.

-


public aspect Log{
pointcut methodEntry() : call(* Hello.printHello(..));

before() : methodEntry() {
System.out.println("in the hello class before method" + thisJoinPoint.getSignature().toString());
}
}
-




Thanks
Sal

0
Comment actions Permalink

Please fill the SCR.

--
Best regards,
Mike Aizatsky.
-


JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


0
Comment actions Permalink

Hi,
Does anyone knows how much of AspectJ is supported
in the current EAP. Any documentation.

Thanks
Sal

0
Comment actions Permalink

Currently AspectJ 1.0 is supported.

Runtime part:
before and after advices with call (both methods and constructors), execution, within, withincode, this, target, args pointcuts
should work. Also works reflection: thisJoinPoint, thisJoinPointStaticPart.

declare error and declare warning should be highlighted in editor.

Intertype declarations are not supported yet.

Since AspectJ 1.1 is out, we're going change the parser to reflect language changes introduced in the release and then proceed with
the runtime part.
Anyway, you are welcome to submit SCRs if anything does not work for you.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"



0

Please sign in to leave a comment.