What is the method signature (for use with GetStaticMethodId) for this method:-
public static MyView newMyView() {
return new MyView(RhodesService.getInstance().getContext(), null);
}
Is it "()Lcom/nativestuff/MyView;"? (if the package is com.nativestuff?)
Yes ()Lcom/nativestuff/MyView; is correct. In general:
B = byteC = charD = doubleF = floatI = intJ = longS = shortV = voidZ = booleanLfully-qualified-class = fully qualified class[type = array of type(). If return type is void (or constructor) use (argument types)V.()Lcom/nativestuff/MyView is correct.
You can also find the signature through
javap -s -classpath bin/classes com.nativestuff.MyView
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With