Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] Pertypewithin() and inner/nested type

How is pertypewithin() aspects state is associated with inner and nested types?

On most occasion (especially logging a la log4j), inner types (but not necessarily nested types -- declared using static) need to share the per-type state with the outermost type. However, a direct interpretation of pertypewithin() -- per type within (those matched by) the type pattern -- will make one think that inner and nested state will have *separate* state than the outer type.

This issue affects both pertype(Pointcut) or pertypewithin(TypePattern) the same way (I think). Hence a separate email to avoid confusion.

-Ramnivas



Back to the top