Community
Participate
Working Groups
Build Identifier: Version: 3.6.1 Build id: M20100909-0800 Inappropriate error message "A file or folder with this name already exist" appears on empty input for Resource Rename dialog. Reproducible: Always Steps to Reproduce: Steps to reproduce: 1) Create any file 2) Press F2 on it 3) Delete all text in opened "Rename Resource" dialog 4) Inappropriate error message "A file or folder with this name already exist" will appear
Created attachment 182199 [details] screenshot Submitting screenshot
Created attachment 182290 [details] Changed order of validation The same error displayed as well for ?\? and ?/? file names. The reason that validator displayed the ?already exists? message was that the full path of target file was identical with parent directory. I?ve moved validation of the name earlier and now validator displays correct message.
Moving to JDT/UI.
Well, the original problem is in IContainer.findMember(String): it specifies to find the members with the given *name* but there is no member with name "". Looking at the implementation, the method actually treats the name as path. I've filed bug 329373 to track this. Having said that, the patch works and I've committed it to HEAD (including updated copyright date). Available in builds >= N20101103-2000.