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.
Product Version: NetBeans IDE Dev (Build 20071107013858) Java: 1.6.0_05-ea; Java HotSpot(TM) Client VM 1.6.0_05-ea-b06 System: Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb) Invalid import is added to the new class when moving inner enum to separate file. Steps to reproduce: 1) have a class: public class NewClass { enum A { A,B,C; } } 2) use 'Move Inner to Outer' refactoring on enum A -> file A is created with this content: package javaapplication1; import javaapplication1.NewClass.A; // <- A is not in NewClass anymore enum A { A, B, C }
This invalid import is added automatically by import management.
Not reproducible for me anymore, probably fixed. --- Product Version: NetBeans IDE Dev (Build 090303) Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133 System: Mac OS X version 10.5.6 running on i386; MacRoman; en_US (nb)