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 - "fix imports" doesn't handle .* and single imports correctly
Summary: "fix imports" doesn't handle .* and single imports correctly
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on: 89596
Blocks:
  Show dependency tree
 
Reported: 2007-02-09 20:56 UTC by olegsukhodolsky
Modified: 2009-11-02 11:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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