[aspectj-users] Problem with annotation based pointcut and inner classes

2008-08-27 Thread Christian Kölle
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

Re: [aspectj-users] Problem with annotation based pointcut and inner classes

2008-08-27 Thread Andrew Eisenberg
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

Re: [aspectj-users] Regression from 1.5: can't find type error in AspectJ 1.6

2008-08-27 Thread Andy Clement
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

[aspectj-users] Newbie - need very basic examples - AspectJ annotation style

2008-08-27 Thread CheapLisa
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