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.
[ BUILD # : 200710071200 ] [ JDK VERSION : 1.6.0_03 ] Repro: Create a new Java class. Add this method: public static void test() { FileInputStream fis = new FileInputStream(new File(".")); } Use the editor hint to import java.io.File and then again to import java.io.FileInputStream. Result: import java.io.File; /* * To change this template, choose Tools | Templates * and open the template in the editor. */ import java.io.FileInputStream; /** * * @author TB */ public class Test { public static void test() { FileInputStream fis = new FileInputStream(new File(".")); } } The 2 imports should be in subsequent lines, but one is above and the other below the comment.
This happens only for classes in default package and only the first import is misplaced -> not so serious
Overtake.
*** Issue 164308 has been marked as a duplicate of this issue. ***
Reassigning all moonko's java/source bugs to myself.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss