Community
Participate
Working Groups
3.2 - have a class with a couple of calls to System.arraycopy - you would like to wrap all these calls to add index checking - select Refactor > Create Indirection - select "redirect all method invocations" - click 'Preview' > takes forever, as all calls to System.arraycopy in the workspace are collected > clearing "redirect all method invocations" will only replace one single call -> What I really want in this case is to just redirect the calls in my cu. -> Need a way to specify the scope of the refactoring Perhaps better using over "extract method"?
Scope selection would probably look the same as in Java search dialog page.
This would make sense for all refactorings that support partial updates (code still compiles with only some references updated). For some refactorings, this is even state dependent, e.g. rename method would support a scope iff "Keep original method as delegate..." is checked.