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.
Sample project attached. Try to rename "AClass" to "BClass" - the constructor will remain named "AClass()".
This is regression against 6.1
Created attachment 72365 [details] Sample application
Hmm, I tried NB 6.1 and it doesn't work there either.
It seems so However, in 5.5 it works correctly and it's a kind of regression, indeed :(
Lowering priority. It is not a new regression. It works the same way at least from 6.0. It can be reproduced in case some nested class is in front of the constructor otherwise the refactoring works as expected. It is a bug of the java source generator (CasualDiff). Reassigning. I have a fix but I would suggest to postpone it to 6.5-patch1.
fixed http://hg.netbeans.org/main/rev/47d4f229d2f5
Integrated into 'main-golden', will be available in build *200810220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/47d4f229d2f5 User: Jan Pokorsky <jpokorsky@netbeans.org> Log: #150831: remeber class name in context of nested classes
v.
The fix has been backported into release65_fixes repository. http://hg.netbeans.org/release65_fixes/rev/0325b6f2f2a4
verified in patch1