[
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 | 
Hello,
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
TestCase.
public class TestSafeSwingCalls {
    public static void main(String[] args) {
    	JFrame frame = new JFrame();
    	frame.setTitle("Title");
    	frame.setSize(new Dimension(100, 100));
    	frame.setVisible(true);
    	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.
Vincenz