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 - [Move] Bogus refactoring warning
Summary: [Move] Bogus refactoring warning
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P4 normal with 1 vote (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-01 09:12 UTC by pekarna
Modified: 2011-05-05 11:49 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (13.38 KB, image/png)
2010-08-01 09:12 UTC, pekarna
Details
Class to be moved (1.20 KB, application/octet_stream)
2010-08-01 09:12 UTC, pekarna
Details

Note You need to log in before you can comment on or make changes to this bug.
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.