I've tried this, didn't need to save between refactoring:
1. I have this private method (hope this is what you mean by 'private
function'):
private void sayHello(String name) {
System.out.println("Hello " + name);
}
2. I double-click on the word 'sayHello', press Ctrl-R, and type 'sayBye',
and now the method is named 'sayBye'. I immediately press Ctrl-R again, and
type 'saySomethingElse'.
No problem, the above works, I have renamed a private method twice using
Ctrl-R without needing to save the file first or at any other point.
If the above is not what you did, can you explain what you did in a similar
way so that it can be reproduced.
Gj
On Sun, Aug 5, 2018 at 9:05 AM, Patrik Karlström <[email protected]> wrote:
> Hi,
> I have been using NB 9 for a couple of days and I just noticed something
> odd compared to NB8.2 when trying to rename a private function with
> Refactor/ Ctrl-R.
>
> In NB9 I can't rename it twice without saving the file first.
> Is this as intended or should I file a bug?
>
> And to be able to read the error message I actually have to press and hold
> Ctrl-R.
>
> Product Version: Apache NetBeans IDE 9.0 (Build
> incubator-netbeans-release-334-on-20180708)
> Java: 1.8.0_181; Java HotSpot(TM) 64-Bit Server VM 25.181-b13
> Runtime: Java(TM) SE Runtime Environment 1.8.0_181-b13
> System: Linux version 4.17.9-1-MANJARO running on amd64; UTF-8; sv_SE (nb)
>
> /Patrik
>