Re: [aspectj-users] How to get the enclosing class in a Pointcut

2017-09-26 Thread Andy Clement
If imported as a maven project the AJDT Configurator should kick in and configure the project correctly. Look in the project properties > builders, is it using AspectJ to build? You can configure the AspectJ compiler properties to show eclipse info message for AspectJ weave info messages. That

Re: [aspectj-users] How to get the enclosing class in a Pointcut

2017-09-25 Thread Mikael Petterson
Hi Andy! Yes now I got the message  I have exactly the same code. I think it has something to do with the compile and execution of my test case. I can see that ajc i done: aspectj-maven-plugin:1.10:compile (compile_with_aspectj) @ resource-manager --- [INFO] Showing AJC message detail for

Re: [aspectj-users] How to get the enclosing class in a Pointcut

2017-09-22 Thread Andy Clement
Hey, hope you get this email :) Here is a complete program: 8< 8< Demo.java = public class Demo { public static void main(String []argv) { new Demo().test(); } public void test() { Node node = new Node(); Handler handler = node.getObjectHandler();

Re: [aspectj-users] How to get the enclosing class in a Pointcut

2017-09-22 Thread Mikael Petterson
Thx Any I really appreciated your help. You where correct in your assumption: " If you want to match calls *to* deprecated methods it would be more like: call(public * *(..)) && @annotation(Deprecated) " This is what I want to accomplish. This is the structure of my maven project:

Re: [aspectj-users] How to get the enclosing class in a Pointcut

2017-09-21 Thread Mikael Petterson
Thx! I got your reply but why did I not get his? Do I need to make any changes to get them? br, //mike Från: Frank Pavageau Skickat: den 21 september 2017 07:54 Till: aspectj-users@eclipse.org; Mikael Petterson Ämne: Re:

Re: [aspectj-users] How to get the enclosing class in a Pointcut

2017-09-21 Thread Frank Pavageau
2017-09-21 9:46 GMT+02:00 Mikael Petterson : > So no input on this one? > Yes, Andy answered on the list itself : https://dev.eclipse.org/mhonarc/lists/aspectj-users/msg15087.html Regards, Frank ___ aspectj-users mailing

Re: [aspectj-users] How to get the enclosing class in a Pointcut

2017-09-21 Thread Mikael Petterson
Bump  So no input on this one? br, //mike Från: Mikael Petterson Skickat: den 18 september 2017 13:27 Till: aspectj-users@eclipse.org Ämne: How to get the enclosing class in a Pointcut Hi, I have started to look into

Re: [aspectj-users] How to get the enclosing class in a Pointcut

2017-09-19 Thread Andy Clement
Just want to 100% understand your requirement: > I want to find which classes and methods outside our application that calls > to our application classes with public methods that has annotation > @Deprecated. You want to find calls to your API *from* code marked @Deprecated or you want to

[aspectj-users] How to get the enclosing class in a Pointcut

2017-09-18 Thread Mikael Petterson
Hi, I have started to look into aspectj , now that I have a working dev environment in Eclipse  I want to find which classes and methods outside our application that calls to our application classes with public methods that has annotation @Deprecated. I have created the following