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.
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
Created attachment 50394 [details] Nb Project to illustrate issue
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();
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.
I have filed bug to Apple, its number is #5530057.