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.
Try following usecase: FileObject f = ...; while (true) { String n = FileUtil.findFreeFileName(f,"a","b"); f.createData(n,"b"); } and measure time spent in the method. The more files in the folder the slower it will be becasue impl of the method on Windows iterate through all the files in the folder. For a few hundreds of files it will be way slower (>100ms on my notebook). On the other hand it is not very common usecase and so it is just P3.
AbstractFileSystem is case-sensitiv even on Windows. This is source of problems and this one is just one example.
Priority a little bit decreased.
Radek, the FileBased filesystem is now case insensitive for windows. I should be simply fixed by removing the special code fro windows in FileUtil.checkFreeFileName << if ((Utilities.isWindows () || (Utilities.getOperatingSystem () == Utilities.OS_OS2)) || isMacOS()) { >> if (( (Utilities.getOperatingSystem () == Utilities.OS_OS2)) ) { And I have a question. MacOS is case insensitive ?
Reassigning to new module owner jskrivanek.
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. We apologize for any inconvenience. Thank you. The NetBeans Team