Community
Participate
Working Groups
When using private static aspects inside a class (e.g. using the Participant pattern as described in Laddad: AspectJ in Action), the compiler reports a warning about the type never being used, e.g.: The private type RowSet.ConstructorCallControlAspect is never used locally This, of course, only happens when the setting "Window-->Preferences-->Java-- >Compiler-->Unused code-->Unused or unread private members" is set to Warning. These warnings should not be generated as aspects are (almost) never referred to anywhere else in the code, so they are not really unused even if references do not exist.
The warning comes from the compiler, so passing over to AspectJ. The warning is given when using "ajc -warn:unusedPrivate" from the command line.
this would be a nice thing to tidy up in aj5m4
now fixed in tree, and will be available in next published AspectJ development build on the AspectJ download page.