Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Call JoinPoints in 1.1b2 and 1.0.6


I played a little bit with the swing safety stuff posted here.

I have the following pointcut:

pointcut callingAnySwing(): call(* javax.swing..*+.*(..));

before(): callingAnySwing() {
 	System.out.println("Calling any Swing");

Under 1.1b2 this has no effect when compiled with the following litte

public class TestSafeSwingCalls {

    public static void main(String[] args) {
    	JFrame frame = new JFrame();
    	frame.setSize(new Dimension(100, 100));
    	frame.setTitle("Second Title");
    	frame.setSize(new Dimension(100, 100));

Using 1.0.6 it works for me. Is it a bug or has something changed?

this works in 1.1b2: call(* *(..)) && target(javax.swing.JFrame); 
this does not work in 1.1b2: call(* javax.swing.JFrame.*(..));

No compilation errors or warnings.

Are these two pointcuts equivalent: call(* type.*(..)); and call(* *.*(..))
&& target(type); ?

What's wrong?
Any clarifications greatly appreciated.


Back to the top