gudzpoz / luajava

Lua for Java on Windows, Mac OS X, Linux, Android. 5.1, 5.2, 5.3, 5.4, LuaJ or LuaJIT.
https://gudzpoz.github.io/luajava/
Other
143 stars 17 forks source link

Rewritten method defaulting with JNI #32

Closed gudzpoz closed 2 years ago

gudzpoz commented 2 years ago

Fixes #22

  1. Does not require MethodHandles API so that it is backward compatible with most Android versions.
  2. Uses JNI CallNonvirtual<Type>MethodA to handle default method calling, which might incur security risks though.
  3. Adds to the java.method API to help with explicit default method calling.