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 118108 - NetBeans doens't count Mac's file system as case-independent
Summary: NetBeans doens't count Mac's file system as case-independent
Status: VERIFIED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 5.x
Hardware: Macintosh Mac OS X
: P3 blocker (vote)
Assignee: rmatous
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-08 14:54 UTC by Sergey Grinev
Modified: 2008-12-22 11:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Nb Project to illustrate issue (2.82 KB, application/octet-stream)
2007-10-08 14:58 UTC, Sergey Grinev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Grinev 2007-10-08 14:54:06 UTC
1. Run NetBeans on MAC
2. Open attached project
3. Run it and click on File->Open File Objects
4. You can see /tmp/file.h and /tmp/file.H opened in different tabs, although only tmp/file.h exists
Comment 1 Sergey Grinev 2007-10-08 14:58:05 UTC
Created attachment 50394 [details]
Nb Project to illustrate issue
Comment 2 Sergey Grinev 2007-10-08 15:01:09 UTC
edit: menu item name is File->IZ118108

code:
            String path = System.getProperty("java.io.tmpdir") + File.separator + "file.";
            File f1 = new File(path + "h");
 
            f1.createNewFile();

            FileObject fo1 = FileUtil.toFileObject(f1);
            DataObject.find(fo1).getCookie(OpenCookie.class).open();

            DataObject.find(FileUtil.findBrother(fo1, "H")).getCookie(OpenCookie.class).open();

Comment 3 rmatous 2007-10-09 10:13:38 UTC
JDK bug, I think. java.io.File.equals should probably return true for files xyz.h and xyz.H. Current impl. of
java.io.File return that both files are different and moreover that both exists -> then FS impl. return both instances
for two different, existing files. 

Jara, please report this Mac JDK bug.
Comment 4 Jaromir Uhrik 2007-10-09 12:12:55 UTC
I have filed bug to Apple, its number is #5530057.