Community
Participate
Working Groups
Version: 2.2.0.e37x-20111215-2200 AspectJ version: 1.7.0.20111215190600 I'm attempting to include the aspect defined towards the end of this article: http://weblogs.java.net/blog/alexfromsun/archive/2006/02/debugging_swing.html It has a wildcard import: ----------- import javax.swing.*; ----------- Ctrl-Shift-O produced: ----------- import javax.swing.import javax.swing.JComponent; import javax.swing.SwingUtilities; ----------- Notice that the reorganize seems to have only removed the wildcard, and forgot the rest of the "import javax.swing.".
Yep. Easily reproducible. Thanks for the bug report.
Simpler aspect that recreates the problem: import javax.swing.*; aspect EdtRuleChecker { JFrame j; } It is a problem with any * imports.
This is a source location problem.
Yes, problem was that there was a small change to how the parser creates import references since upgrading to a Java 7-based parser, but this change wasn't reflected in AJDT. Fixed now. It's small changes like these that I am expecting to see a few more of. Let me know if you see any more quirks. Fixed and committed with regression tests.