Method local variables would still be accessible while the method has not ended as the reference must be stored somewhere to prevent the Java garbage collector from collecting it. Is there any class or method either in Java or through JNI which can give me access to it or the method stack or locate the object reference?
Assume I am running the Main class from my main class via reflection
The local variable map in the thread class only contains soft reference to string encoder and decoder and the rest of the 8 entries are null.
Aucun commentaire:
Enregistrer un commentaire