This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 166524

Summary: Errors in rewriting imports
Product: java Reporter: Jan Lahoda <jlahoda>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: VERIFIED FIXED    
Severity: blocker CC: msauer, sustaining
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jan Lahoda 2009-06-04 08:32:06 UTC
[recent sources]

Consider two cases:
-compilation unit with two imports:
import org.jdesktop.layout.GroupLayout;
import org.jdesktop.layout.Baseline;
and a transformation that swaps these imports - the GroupLayout import is missing in the result
-compilation unit with one import:
import org.jdesktop.layout.Baseline;
and a transformation that re-writes it to: "import static org.jdesktop.layout.GroupLayout.CENTER;" - the "import static
" is missing in the result.
Comment 1 Jan Lahoda 2009-06-04 09:22:21 UTC
http://hg.netbeans.org/jet-main/rev/6bd8e190fa62
Comment 2 Quality Engineering 2009-06-08 18:45:05 UTC
Integrated into 'main-golden', will be available in build *200906081401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/6bd8e190fa62
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #166524: fixing rewriting of non-static import into a static one and a problem with reordering the imports.
Comment 3 Petr Blaha 2009-07-02 13:31:09 UTC
v.
Comment 4 pgebauer 2009-07-09 10:03:54 UTC
The fix has been ported into the release67_fixes repository.
http://hg.netbeans.org/release67_fixes/rev/6a5e5d4098dc
Comment 5 Jiri Prox 2009-07-16 16:12:02 UTC
v in 6.7.1