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.
Summary: | Incorrect values of FileRenameEvent.getName and getExt | ||
---|---|---|---|
Product: | platform | Reporter: | Jan Lahoda <jlahoda> |
Component: | Filesystems | Assignee: | Jaroslav Tulach <jtulach> |
Status: | VERIFIED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.0.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 198565 | ||
Attachments: | A possible test case. |
The test really fails. ergonomics#c7827a9c39fd Jan, is this a candidate for backport to 7.0.1? If so, can you review the fix? Yes, this is a candidate for 7.0.1. I will check the original usecase (on Windows) and take care of sending e-mail to reviewers and transplanting all the changesets to 7.0.1. Unless you insist on transplanting this one yourself, of course. Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/c7827a9c39fd User: Jaroslav Tulach <jtulach@netbeans.org> Log: #199616: Wrong FileRenameEvent.getName() and getExt() OK, go on. The patch seems fine to me. Merged to release701: http://hg.netbeans.org/releases/rev/bb13bb8e2b81 Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/bb13bb8e2b81 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #199616: Wrong FileRenameEvent.getName() and getExt() verified in 7.0.1 build 201107160900 |
Created attachment 109049 [details] A possible test case. [recent sources, on Windows] When a file is renamed in such a way that only the case differs (e.g. origi.nal to Origi.nal), the FileRenameEvent that arrives to FileChangeListener.fileRenamed returns the original name including extension from getName() and the new name including extension from getExt(). That is obviously not correct, and appears to be causing ugly problems to the indexing. I am attaching a test case that will most likely fail on Windows (cannot test it right now, though).