vendredi 6 mars 2015

When to use CallNonvirtualObjectMethod and its related methods?


It seems like CallStaticObjectMethod, CallObjectMethodMethod and etc... are all you need. According to the docs



CallNonvirtual<type>Method families of routines and the Call<type>Method families of routines are different. Call<type>Method routines invoke the method based on the class of the object, while CallNonvirtual<type>Method routines invoke the method based on the class, designated by the clazz parameter, from which the method ID is obtained. The method ID must be obtained from the real class of the object or from one of its superclasses.



From that description it also sounds that the specific method CallNonvirtualObjectMethod has no use.




Aucun commentaire:

Enregistrer un commentaire