Hello
I have a problem with an annotation based pointcut that should match
annotated methods. Here's the aspect code:
privileged aspect JetmMeasurement {
pointcut jetmMeasure(): call(@Jetm * *(..));
Object around(): jetmMeasure() {
[...]
}
Unfortunately the pointcut doesn't
Does this not work for you? The call to method() in main() is where
the advice is applied.
privileged aspect JetmMeasurement {
pointcut jetmMeasure(): call(@Jetm * *(..));
Object around(): jetmMeasure() {
System.out.println(hi!);
return null;
}
@interface Jetm
Hi Kevin,
Thanks for trying that. Instead of the unhelpful 'Argh!' message I now get
a much more reasonable:
Unable to pack method, jump (with opcode=167) is too far: 42205
java.lang.IllegalStateException: Unable to pack method, jump (with
opcode=167) is too far: 42205
at
My IDE only supports annotation style with AspectJ and I am in need of
examples for annotation style. I bought a book (no examples with annotation
style) and have read a lot of documentation but can not get this one simple
thing to work.
1) Example of an aspect that runs after any Throwable and