Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Excluding synthetic compiler methods

I've found that AspectJ is inlcuding synthetic methods generated by the Java compiler. In this case, it's the static methods created by the compiler to allow inner classes access to private members.

I'd like to be able to say:

    pointcut excludedMethods() :
        execution(* *()) ||
        execution(new()) ||
        execution(synthetic * *(..)) ||
        execution(boolean equals(Object));

But synthetic does not appear to be valid modifier.

I think it should be.




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

Back to the top