RE: [aspectj-users] Thanks Simone!

2009-05-11 Thread hermod.opstvedt
Hi I'm chipping in here Hermod -Original Message- From: aspectj-users-boun...@eclipse.org [mailto:aspectj-users-boun...@eclipse.org] On Behalf Of Andy Clement Sent: Monday, May 11, 2009 11:17 PM To: aspectj-users@eclipse.org Subject: [aspectj-users] Thanks Simone! Just a public: Thank

Re: [aspectj-users] Thanks Simone!

2009-05-11 Thread Simone Gianni
Thanks Andy, just my two cents ... real thanks go to you guys who make those releases :D ... and afterall I was the first one needing it :D BTW, the metadata stuff is updated in the repository now, can Wim and Hermod try again is the warning is still there? Simone Andy Clement wrote: Just a

Re: [aspectj-users] Re: ReferenceType.isCoerceableFrom question

2009-05-11 Thread Andy Clement
If your EPR interface is the one defining the get method, you can specify that as the declaring type restriction in the pointcut: execution(* EPR.get*(..)) { } Andy 2009/5/11 James Stangler : > Ah, I think I see.  The pointcut definition is just saying that as long as > it's a getter and the cla

[aspectj-users] Re: ReferenceType.isCoerceableFrom question

2009-05-11 Thread James Stangler
Ah, I think I see. The pointcut definition is just saying that as long as it's a getter and the class implements the interface, the advice applies to it, regardless of whether the getter is defined in the interface or not. Is there a way to restrict it to only implemented methods defined in the

[aspectj-users] Thanks Simone!

2009-05-11 Thread Andy Clement
Just a public: Thank you! to Simone Gianni on behalf of the project for helping us get the maven repo syncing sorted out for AspectJ. It has been on the todo list for YEARS, but finally Simone has helped us get into a position where we can get releases out into the maven repo on the same day tha

Re: [aspectj-users] ReferenceType.isCoerceableFrom question

2009-05-11 Thread Andy Clement
I suspect your problem is that EPR is an interface. > The class "com.sabre.liberty.web.RequestTypeRegistry" extends Object and > implements no interfaces. The interface "com.sabre.liberty.user.EPR" > extends no other interfaces. Suppose I wrote this (probably non-sensical but possible) code: cl

[aspectj-users] ReferenceType.isCoerceableFrom question

2009-05-11 Thread James Stangler
I hope someone can help me understand what's going wrong (or let me know what additional information I need to provide). I have an aspect where the pointcut seems to be advising code that it shouldn't be advising and it seems to be getting the ok from the isCoerceableFrom method in ReferenceTyp

Re: [aspectj-users] Customized annotations @AspectJ vs AspectJ

2009-05-11 Thread Andy Clement
I didn't write that area of the code but I believe whatever route you use to define the aspect, if it is compiled with ajc, the AspectJ annotations will be added and that enables the AspectJ reflection interface to work (AjType/etc). As Wim says, make sure your annotations are of appropriate reten

Re: [aspectj-users] Bad version number found?

2009-05-11 Thread Simone Gianni
I think I maybe spot the problem : since we started a new repository for syncing, and we deployed there only 1.6.3 and 1.6.4, probably if it searches for 1.6.2 it does not find it in the metadata.xml file, and gives that warning, meaning "I was searching for 1.6.2, but had to resolve to 1.6.4".

Re: [aspectj-users] Bad version number found?

2009-05-11 Thread Simone Gianni
I'll have a look at it asap, now that we are synced every 4 hours we will hopefully be able to fix this .. Simone hermod.opstv...@dnbnor.no wrote: Hi I have seen this with 1.6.3 also. mvh Hermod *From:* aspect

Re: [aspectj-users] AspectJ 1.6.4 released

2009-05-11 Thread Simone Gianni
Yupp .. Simone Wim Deblauwe wrote: Yes, thank you guys! 2009/5/10 Ramnivas Laddad > I now see it in the Maven central repository. Thanks Andy, Simone, and Calros for taking care of this. -Ramnivas On Sat, May 9, 2009 at 5:11 PM, Ramniva

Re: [aspectj-users] Customized annotations @AspectJ vs AspectJ

2009-05-11 Thread Wim Deblauwe
You need to set the retention policy on your annotations: http://www.java2s.com/Tutorial/Java/0020__Language/SpecifyingaRetentionPolicy.htm regards, Wim 2009/5/11 Villazón Alex > Hi, > We want to use annotations for advices and methods defined in the aspect. > We need to post process the comp

[aspectj-users] Customized annotations @AspectJ vs AspectJ

2009-05-11 Thread Villazón Alex
Hi, We want to use annotations for advices and methods defined in the aspect. We need to post process the compiled aspect. Therefore, we need that the compiler keeps user-defined annotations. I tried to add annotations with standard AspectJ, and it seems that the compiler keeps them. At least,