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.
I've tried to move an inner class to outer level (refactoring action), the class contains a switch() on enum-type expression. The case constants become qualified after the refactor, i.e. switch (kind) { case IntroduceKind.CREATE_CONSTANT: return "IntroduceConstant"; //NOI18N case IntroduceKind.CREATE_VARIABLE: return "IntroduceVariable"; //NOI18N default: throw new IllegalStateException(); } } which is an error. The referenced enum is a public toplevel class in the same package. (for reproduction: I've tried to move org.netbeans.modules.java.hints.introduce.IntroduceHint.IntroduceFix to package-level)
changeset: a113a8718b24 user: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> date: Tue Mar 24 12:17:20 2015 +0100 summary: #236189 - Illegal qualified enum names after Move refactoring
Integrated into 'main-silver', will be available in build *201503250001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/a113a8718b24 User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: #236189 - Illegal qualified enum names after Move refactoring
*** Bug 256524 has been marked as a duplicate of this bug. ***