| Summary: | Invalid code generated in re-organize imports | ||
|---|---|---|---|
| Product: | [Tools] AJDT | Reporter: | Brian de Alwis <bsd> |
| Component: | UI | Assignee: | AJDT-inbox <AJDT-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | andrew.eisenberg |
| Version: | 2.1.3 | ||
| Target Milestone: | 2.2.0 | ||
| Hardware: | PC | ||
| OS: | Mac OS X - Carbon (unsup.) | ||
| Whiteboard: | |||
|
Description
Brian de Alwis
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. |