Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道在jni
jclass cls = (*env)->GetObjectClass(env, obj);
它返回类的新对象或当前对象?
这取决于JVM。例如,在 Android 上,类是单例的,因此 GetObjectClass() 如果类已加载,则返回当前实例。