I have this method:
public void testJSNI2(){
String x = "test";
}
I can access this method like this:
helloJsni.@com.jsni.client.HelloJSNIImpl::testJSNI2(Ljava/lang/String;)
But how can I access the String x, which is defined inside a method?
You can’t access the variable
xbecause it is in the scope of the method, the same way you wouldn’t be able to access it in Java code.