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 187336 - Cannot rename. Class already exists in folder
Summary: Cannot rename. Class already exists in folder
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: J Bachorik
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2010-06-08 14:04 UTC by Alexandr Scherbatiy
Modified: 2010-07-07 20:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE screenshot (74.34 KB, image/png)
2010-06-15 09:37 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2010-06-08 14:04:41 UTC
Product Version         = NetBeans IDE 6.9 (Build 201006041701) (#907f98fc0a33)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc.


Steps to reproduce:

- Create Tower JavaFX class
---------- Tower.fx -----------
public class Tower {
}
------------------------------

- Create A JavaFX class
---------- A.fx -----------
public class A{
    var t:Tower;
}
------------------------------

- Refactor -> Rename the 't' variable to 'tower' in the A class

Cannot rename. Class tower already exists in folder JavaFXApplication19/src/javafxapplication19.
Comment 1 J Bachorik 2010-06-14 10:26:59 UTC
Could you provide a project reproducing this problem. I am not able to hit this error by following the provided steps (build 201006130001)
Comment 2 Alexandr Scherbatiy 2010-06-15 09:36:23 UTC
It is reproduced as described in the  NetBeans IDE Dev (Build 201006150001)
See the attached screenshot.
Comment 3 Alexandr Scherbatiy 2010-06-15 09:37:59 UTC
Created attachment 100082 [details]
IDE screenshot
Comment 4 J Bachorik 2010-06-15 10:47:40 UTC
Ok. I've found it. On Linux it is necessary to rename the variable to "Tower" since the filesystem is case sensitive.

Fixed in http://hg.netbeans.org/javafx/rev/1d3c77b18875
Comment 5 Alexandr Scherbatiy 2010-06-18 08:44:48 UTC
verified in 201006180001
Comment 6 Andrei Chistiakov 2010-07-07 20:04:03 UTC
Verified with NetBeans IDE 6.9.1 Dev (Build 201007052301)