Re: [aspectj-users] Is there access to the "actual" pointcut when an advice is executed?

2008-12-05 Thread Eric Bodden
Jason, you may want to consider looking at the AspectBench Compiler (www.aspectbench.org). It was designed for extensibility and gives you full access to all possible kinds of information at weave time. Eric 2008/12/5 Jason Weinstein <[EMAIL PROTECTED]>: > 1) Are there any listeners available for

Re: [aspectj-users] Is there access to the "actual" pointcut when an advice is executed?

2008-12-05 Thread Andy Clement
Hi, 2008/12/5 Jason Weinstein <[EMAIL PROTECTED]>: > 1) Are there any listeners available for when a class is woven?? You can register your own message handler that will be called for weaving messages. -XmessageHandlerClass:... Provide alternative output destination to stdout/stderr for al

[aspectj-users] Is there access to the "actual" pointcut when an advice is executed?

2008-12-05 Thread Jason Weinstein
1) Are there any listeners available for when a class is woven?? 2) Is there access to the "actual" pointcut when an advice is executed? As an example This pointcut public pointcut NormalizedMessage_new() : call(NormalizedMessage+.new(..)); This is thisJoinPoint.toLongString() "call(publi

Re: R: Re: [aspectj-users] ITD syntax

2008-12-05 Thread Ramnivas Laddad
Dave, One of the issues we will need to work through is the mapping between the two syntax styles. Perhaps, the only issue we need to work through is clarifying the supported models (insertion and delegation) through appropriate syntax. I think your option c (or a variation of it--that explicitly

Re: R: Re: [aspectj-users] ITD syntax

2008-12-05 Thread Dave Whittaker
Ramnivas, Hmmm... now I think I'm a bit confused. I haven't used the @DeclareParents annotation, as a matter of fact I wasn't aware it existed until you mentioned it, but if it already uses delegation to accomplish what we're talking about then that's a different story. If both methods

Re: R: Re: [aspectj-users] ITD syntax

2008-12-05 Thread Ramnivas Laddad
That's quite a good discussion we've had! There are indeed two different model for implementation for ITDs as Herman distilled well: the classic member introduction (the current code-style AspectJ model and Dave's original proposal) and delegation model (the one implemented in @AspectJ's @DeclareP

Re: R: Re: [aspectj-users] ITD syntax

2008-12-05 Thread Dave Whittaker
It sounds to me like maybe the best idea would be to table the conversation on the "delegation" route for now. I still think that it would be a nice feature to have, but with less caffeine in my system this afternoon it is seeming like it might be a bit overly ambitious for a starting poin

Re: [aspectj-users] ConcurrentModificationException

2008-12-05 Thread Simone Gianni
Ciao Luca, Luca Ferrari wrote: > I thought it was only thrown by different threads. Now I solved the > problem. > Great! :) > The fact is that I've got a WorkerThread that, thru reflection, invokes the > loadAll method on a few classes. So I've got two entry points for the load > all > meth

Re: [aspectj-users] is there way to get actual content of arguments in a method during weaving time?

2008-12-05 Thread Andy Clement
Hi, I'm afraid I can't think of a way you can do that. Well I suppose I can perhaps imagine changing AspectJ to to support constant references (like your example) , but it wouldn't be so easy the minute you pass an argument that was stored in a variable: String a = "Jbutton" + " A"; jp.setToolTi

Re: [aspectj-users] ConcurrentModificationException

2008-12-05 Thread Luca Ferrari
On Friday 5 December 2008 12:58:53 Simone Gianni wrote: > Hi Luca, > a ConcurrentModificationException on a HashMap is usually thrown when > an Iterator is being used and the map gets modified, either by another > thread or by the same thread. If you obtain an iterator from the > cache, then clean

Re: [aspectj-users] ConcurrentModificationException

2008-12-05 Thread Simone Gianni
Hi Luca, a ConcurrentModificationException on a HashMap is usually thrown when an Iterator is being used and the map gets modified, either by another thread or by the same thread. If you obtain an iterator from the cache, then clean it, then call iterator.next(), you'll get the exception.

Re: R: Re: [aspectj-users] ITD syntax

2008-12-05 Thread Simone Gianni
Hi Herman, you perfectly got the point. We are moving from IDT to something else, and that what I felt in the first place without being able to express it with the clarity you had. I agree on splitting this thread on "A simpler syntax for IDTs" and "A delegation approach to IDTs". As

[aspectj-users] ConcurrentModificationException

2008-12-05 Thread Luca Ferrari
Hi all, I got a ConcurrentModificationException using an aspect but I don't understand why. This is the situation: I've got a LazyLoadingCache object (singleton) that thru a few synchronized methods allows the insertion/deletion of entries in the cache. The cache internally uses a HashMap to st

[aspectj-users] is there way to get actual content of arguments in a method during weaving time?

2008-12-05 Thread wei sun
Hi there: For example: package X.X.X; Class A{ Jbutton jb = new Jbutton (); jb.setToolTipText("Jbutton A"); } pointcut MLSwing(String s):call (* javax.swing..*+.setToolTipText(String))&&args(s) and now if I open showWeaveInfo="true" option, the output would be as follow: Join point 'me