I have a class(class B) which i inject code into:
class A {
public Object obj;
class B extends A {
protected void methodA() {
super.methodA()
...
}
}
and now i want to inject code like this:
@Shadow
public Object obj;
@Inject(method="methodA", at =@At("HEAD"))
protected void injectMethodA() {
Object o = this.obj;
}
But it gives me an exception saying that the shadowed field isn’t in the Mixin class. How can I access the superclass?