Eclipse Can’t Refactor My Log Method ??!! What ???

October 11, 2010

Eclipse will not be able to re-factor the following method ???:

public void log(String Message);

into

public void log(String Message, String methodName);

with automatic replace of methodName parameter by the enclosing method name. For example the following call in the main method

log("my message");

will be replaced by

log("my message", "main");

I am sur I am missing something. Where ??


Follow

Get every new post delivered to your Inbox.