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

Summary: NetBeans doens't count Mac's file system as case-independent
Product: platform Reporter: Sergey Grinev <sergius>
Component: FilesystemsAssignee: rmatous <rmatous>
Status: VERIFIED WONTFIX    
Severity: blocker CC: juhrik
Priority: P3    
Version: 5.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: Nb Project to illustrate issue

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.