[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] RE: Capturing EventDispatch Thread
|
Are any calls of that in code that you actually weave into? If such
calls only exist within the JRE and you don't weave into it, then it's
clear that it cannot match.
Eric
On 04/06/07, Fleck, Dan <Dan_Fleck@xxxxxxx> wrote:
Hi,
I am trying to capture and time calls to
java.awt.EventQueue.dispatchEvent(AWTEvent e).
I am using the following code but it doesn't seem to work. Any ideas why I'm
not seeing the events? I added a lot of tries to get it but nothing seemed
to work. I do have other aspects that work fine.
Thanks,
Dan
Code:---
-----------------------------------------------------------------------
@Aspect
public aspect SluggishDetector {
pointcut dispatchPoint(java.awt.Component p1, java.awt.AWTEvent event):
target(p1) && args(event) &&
(
call(void *.dispatchEvent(java.awt.AWTEvent+))
||
call(void *.dispatchEvent(java.awt.AWTEvent+))
||
execution(void
*.dispatchEvent(java.awt.AWTEvent+)) ||
execution(void
*.dispatchEvent(java.awt.AWTEvent+))
) ;
before(java.awt.Component p1, java.awt.AWTEvent event): dispatchPoint(p1,
event) {
System.err.println("ASPECTJ ***** SLUGGISH");
}
}
~
_______________________________________________
aspectj-users mailing list
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
--
Eric Bodden
Sable Research Group
McGill University, Montréal, Canada