How would I write an aspect that would restrict the use of static fields?

Such that compiling something simple like this:

class X {
    static int c; // bad
    int d;          // ok
}


would result in a compiler warning/error for c, but not d.
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to