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 192637 - Case sensitive renaming does not work on Mac OS X
Summary: Case sensitive renaming does not work on Mac OS X
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) Mac OS X
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 167513 192059 (view as bug list)
Depends on: 192222
Blocks:
  Show dependency tree
 
Reported: 2010-11-29 13:36 UTC by Jan Becicka
Modified: 2010-12-07 06:09 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Becicka 2010-11-29 13:36:25 UTC
1. Create class "a"
2. Rename class "a" to "A"
3. Now I see 2 classes in Explorer: "a" and "A" instead of just "A"
4. try to delete class "A" -> both nodes (a,A) are deleted.
Comment 1 Jaroslav Tulach 2010-11-30 07:37:24 UTC
I was working on a similar fix for bug 192222 on Friday. The following commit shall make the behaviour better: e1169459c473 I have however problems to verify that on any Mac OSX or find out what is wrong. There is new "testCaseSensitiveFolderRename" it would be beneficial to know if it works or why it fails.
Comment 2 Jaroslav Tulach 2010-12-02 09:23:25 UTC
The root of the problem is that File.equals(..) and File.hashCode are case sensitive on MacOSX, while they shall be insensitive like on Windows.
Comment 3 Jaroslav Tulach 2010-12-02 09:50:50 UTC
ergonomics#e3f3dc49a2f9
Comment 4 Jaroslav Tulach 2010-12-06 10:27:53 UTC
*** Bug 192059 has been marked as a duplicate of this bug. ***
Comment 5 Jaroslav Tulach 2010-12-06 10:29:48 UTC
*** Bug 167513 has been marked as a duplicate of this bug. ***
Comment 6 Quality Engineering 2010-12-07 06:09:53 UTC
Integrated into 'main-golden', will be available in build *201012070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e3f3dc49a2f9
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #192637: Don't call File.equals and File.hashCode directly. Use Utils wrapper methods. They are modified to work properly on MacOSX and ignore the case of files.
#192637 - Case sensitive renaming does not work on Mac OS X