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 189111

Summary: [Move] Bogus refactoring warning
Product: java Reporter: pekarna <pekarna>
Component: RefactoringAssignee: 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

Description pekarna 2010-08-01 09:12:00 UTC
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.
Comment 1 pekarna 2010-08-01 09:12:32 UTC
Created attachment 101139 [details]
Class to be moved
Comment 2 Jan Lahoda 2010-08-04 08:31:31 UTC
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.