Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] finding static field declarations

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.


Back to the top