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 95137

Summary: "fix imports" doesn't handle .* and single imports correctly
Product: java Reporter: olegsukhodolsky <olegsukhodolsky>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 89596    
Bug Blocks:    

Description olegsukhodolsky 2007-02-09 20:56:17 UTC
Here is a simple test:

import java.awt.*;
import java.awt.Color;

public class Main {
    public static void main(String[] args) {
        System.out.println(Color.RED);
        System.out.println(BorderLayout.NORTH);
    }
}

if you run "fix imports" it changes nothing, however we definitely have 
redundant import here :( Note, that "fix imports" handles duplicated single 
(or .*) imports correctly.
Comment 1 Jan Lahoda 2008-11-19 12:50:42 UTC
later.
Comment 2 Quality Engineering 2009-11-02 11:02:41 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX