I'm trying to match all instances in my application where synchronization
is used on a specific type.  I would expect this could be written fairly
easily as:

    after(Object o): args(mytypeexpression) && args(o) && lock() {
        System.out.println("args after lock " + o.toString());
    }

or as

    after(MyType o): args(o) && lock() {
        System.out.println("args after lock " + o.toString());
    }

however, neither of these work, even though o is accessible as an object of
type MyType.

Is this expected behaviour?

Jon
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to