Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » packages that contain only aspects remain invisible
packages that contain only aspects remain invisible [message #579735] Wed, 19 May 2004 15:27
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
I just noticed, that packages, that contain *only* aspects remain
invisble for eclipse's Java mode and consequently, the aspects in such
a package don't get compiled.

E.g. I just wanted to create a couple of policy aspects (essentially
compile time check re. e.g. the usage of System.out and System.err
instead of proper logging, etc.).
That package (called foo.bar.policies) contained only aspects (i.e.
..aj files). To my surprise none of those aspects signaled any error.
Investigating further I found that the aspects were not compiled and
worse - neither the directory (in Explorer-view) nor the package (in
Package Explorer view) were displayed (I had the option "hide empty
packages" enabled).

Only when I added an empty class "Dummy" to that package the aspects
were detected and compiled (and displayed tons of warnings... :-) ).

It seems, that some file-filter needs to be tweaked so that it also
recognizes aspects-only packages/directories and includes them into
the build process.

Michael
Previous Topic:how to do static crosscutting (adding of member-variables) across multiple classes?
Next Topic:missing AspectJ-build-Button
Goto Forum:
  


Current Time: Tue Mar 19 08:13:36 GMT 2024

Powered by FUDForum. Page generated in 0.01808 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top