0

Given :

function hide(){                                                                       
       displayer.hide(error);  
}

Refactored the function name yields:

function refactored_to_new_name() {
             displayer.refactored_to_new_name(error);
}

Is there a way to prevent intellij from doing this.

Why does it think it has the right to assume it is intelligent?

These kinds of refactorings should never fail, but intellij does it way too often. It assumes things.

Search in comments and strings are disabled.

You might not be able to reproduce this, but it doesn't mean it didn't just happen.

mjs
  • 21,431
  • 31
  • 118
  • 200

1 Answers1

1

It clearly is not a correct behavior. If you are able to reproduce this issue as you say, the best thing you can do is to file an issue in Jetbrains's issue tracker system.

Here is a guide how to submit issues correctly:

  1. Open the IntelliJ IDEA tracking system at https://youtrack.jetbrains.com/ .
  2. If you are not yet registered, do it.
  3. Click Create issue.
  4. On the page that opens, choose IntelliJ IDEA from the Project drop-down list.
  5. Describe your problem and provide a brief summary of it in the Description and Summary fields respectively.
  6. If necessary, attach a screenshot that illustrates your problem.
  7. Click Create issue when ready.
Vojtech Ruzicka
  • 16,384
  • 15
  • 63
  • 66