Refactor problem in IDEA IntelliJ 5.0.1

If in the same method I declare

PrintWriter out = new PrintWriter(new FileWriter(file, true));

and use

System.out.println("Blah blah blah");

When I try to rename "out" variable of PrintWriter class to "writer", IDEA IntelliJ 5.0.1 also change System.out.println to System.writer.println.

Please check it!

0
4 comments
Avatar
Permanently deleted user

I can not reproduce your problem. My IDEA 5.0.1 work well, really, it just rename the first out to out2, keep the System.out unchanged.
I guess you refactory it by replace the string 'out' with 'out2', oh my god, only IDEA 100.0.1 should be intelligent enough to understand what you really want to do...

0
Avatar
Permanently deleted user

I ask other one to check this problem. If it does not exist, maybe it's my fault.

Don't treat anyone like this! F*ck you!

0
Avatar
Permanently deleted user

Could you please provide your full sample class?

Tom

0
Avatar
Permanently deleted user

Maybe it's my fault. I tried to figured out it again but can not!

0

Please sign in to leave a comment.