NewStringUTF() produces a java.security.AccessControlContext and not a java.lang.String. An object of the same type is generated by static_method_that_returns_an_interned_string() in the example.
We probably need to write a JvmString analogous to JvmObject so that the Java string is retained using NewGlobalRef() for a longer time.
NewStringUTF()
produces ajava.security.AccessControlContext
and not ajava.lang.String
. An object of the same type is generated bystatic_method_that_returns_an_interned_string()
in the example.We probably need to write a
JvmString
analogous toJvmObject
so that the Java string is retained usingNewGlobalRef()
for a longer time.