incorrect owner argument of ASM MethodWriter#visitFieldInsn when dealing with static field
Consider the following example:
public class Test extends Test2 {
public static void main(String[] args) {
staticVariable = true;
Test2.staticVariable = true;
}
}
class Test2 {
static boolean staticVariable;
}
The owner argument in MethodWriter#visitFieldInsn(int opcode, String owner,
String name, String desc) for the first access of staticVariable is "Test" while
the second one is "Test2".
This doesn't look right to me. I am using ASM 5.02.