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 164308 - Fix All Imports places imports above copyright notice for default package classes
Summary: Fix All Imports places imports above copyright notice for default package cla...
Status: RESOLVED DUPLICATE of bug 119176
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Max Sauer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-02 11:14 UTC by fommil
Modified: 2009-05-04 14:17 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 fommil 2009-05-02 11:14:45 UTC
Fix All Imports places imports above copyright notice for default package classes.

======= INPUT =======
/*
 * Copyright goes here
 */

public class DefaultPackageImportAllBug {

    public static final void main(String[] args) {	
	new Date();
    }
}
======= OUTPUT =======

import java.util.Date;

/*
 * Copyright goes here
 */

public class DefaultPackageImportAllBug {

    public static final void main(String[] args) {	
	new Date();
    }
}
======= EXPECTED =======
/*
 * Copyright goes here
 */

import java.util.Date;

public class DefaultPackageImportAllBug {

    public static final void main(String[] args) {	
	new Date();
    }
}
Comment 1 Jiri Prox 2009-05-04 14:17:42 UTC
It's similar issue as issue 119176, I guess it can be fixed together 

*** This issue has been marked as a duplicate of 119176 ***