Community
Participate
Working Groups
When an aspect is created in the default package, the package explorer shows it in a wrong place, outside of the package hierarchy. (If the aspect is created in a package, it is displayed at the correct place.)
Created attachment 13942 [details] Files shown at wrong places See the location of Main.java, A2.aj, Aspect.as and PertargetAspect.aj. I think that also the 'Non-Java elements' filter should be modified so that it leaves .aj files visible when AJDT is installed.
Some of this has been fixed as a consequence of the java model work in AJDT 1.2.0M1. The current behaviour is: - Creating an Aspect in the default package: if the package is not specified then, as with classes, the Aspect is put in the default package. - when the project is converted to a Java project (AJ nature is removed) then any .aj files in the default package appear under the project node rather than the default package node in the package explorer.
Hi, I'm closing this bug as fixed because as mentioned in my previous append, creating an aspect in teh default package now appears in the correct place when viewed in the package explorer. Moreover, the second part of this bug - that when AJ nature is removed that the .aj file should still appear in the default package is not going to be fixed because this is down to the JDT moving non-java files out of the default package. Moreover, its not recommended to create aspects (or classes) in the default package. Thanks, Helen