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.
Summary: | [Move] Bogus refactoring warning | ||
---|---|---|---|
Product: | java | Reporter: | pekarna <pekarna> |
Component: | Refactoring | Assignee: | Jan Becicka <jbecicka> |
Status: | RESOLVED WORKSFORME | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Screenshot
Class to be moved |
Created attachment 101139 [details]
Class to be moved
Sorry, but this does not happen to me with the provided test case (neither on a dev build nor on NB6.9). Note that "cz.package" is not a valid package name. |
Created attachment 101138 [details] Screenshot When moving an Enum, NetBeans refactoring warns that "class Tarify uses feature 'this' of class Tarify in the same package" (see screenshot). In this case I think it's not a valid warning since it refers to the same class, and after refactoring, the code is fine. STR: 1) Put the attached .java to a package cz.package 2) Create package cz.package2 3) Move the class by drag'n'drop in the project window and confirm refactoring 4) You'll see the warning.