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.
Created attachment 105541 [details] rename refactoring ignore case for java class file name I use 7.0 latest dev version. Java file class name didn't changed when renaming class via refactoring. I've changed the name for java class "WellTrjEvent" to "WelltrjEvent". So that names are equals if ignore case. But Java compiler is case sensitive.
It looks like file system is again out of sync. NB Explorer shows WelltrjEvent, while Windows Explorer shows WellTrjEvent.
*** Bug 194988 has been marked as a duplicate of this bug. ***
*** Bug 192498 has been marked as a duplicate of this bug. ***
Probably caused by bug 192222: the names are now internally updated, but not changed on the local disk.
ergonomics#5fbb54f9e6af
Integrated into 'main-golden', will be available in build *201102180501* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/5fbb54f9e6af User: Jaroslav Tulach <jtulach@netbeans.org> Log: #194940: Really rename the file on disk when case changes
This sequence of operations does not work correctly in a case insensitive file system: New Class, name Aaa Rename Aaa to bbb Rename bbb to aaa The NetBeans Project window shows the file as "Aaa". The editor flags the class definition as an error with the message "class aaa is public, should be declared in a file named aaa.java" The physical filesystem, the NetBeans Files window, and NetBeans Properties window all show the name as aaa.java.
This is with dev 2011030150400 (In reply to comment #7) > This sequence of operations does not work correctly in a case insensitive file > system: > > New Class, name Aaa > Rename Aaa to bbb > Rename bbb to aaa > > The NetBeans Project window shows the file as "Aaa". The editor flags the class > definition as an error with the message "class aaa is public, should be > declared in a file named aaa.java" > > The physical filesystem, the NetBeans Files window, and NetBeans Properties > window all show the name as aaa.java.
OK, reproduced. Aaa -> bbb -> aaa yields "Aaa" which is wrong.
ergonomics#c0d12023f689
All tests passed. Merged to release70 as changeset: 188af6f1a1ed branch: release70
Integrated into 'main-golden', will be available in build *201103210400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/c0d12023f689 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #194940: Always update the case after rename
*** Bug 196398 has been marked as a duplicate of this bug. ***