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]
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.
Integrated into 'main-golden', will be available in build *200810220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jan Pokorsky <email@example.com>
Log: #150831: remeber class name in context of nested classes
The fix has been backported into release65_fixes repository.
verified in patch1