Bytecode-Modification-Framework icon indicating copy to clipboard operation
Bytecode-Modification-Framework copied to clipboard

Member references in method bodies are not always updated.

Open Col-E opened this issue 8 years ago • 0 comments

This seems to be a edge-case. I've only experienced it when the name of the member being referenced shares the name with a member that does not belong in the jar.

One such example would be:

public void test() { println("Hello!"); }
public void println(String s){ System.out.println(s); }
public void println(String f, String s){ System.out.printf(f + s); }

This becomes:

public void a() { println("Hello!"); }
public void b(String s){ System.out.println(s); }
public void c(String f, String s){ System.out.printf(f + s); }

The method declarations are updated fine, but the references to them are not. Does not occur if the methods are named something else unique.

Col-E avatar Jun 25 '17 06:06 Col-E