This commit is contained in:
Dante
2026-05-21 23:40:20 -07:00
parent 3e2915dff7
commit 877a69d844
5737 changed files with 29796 additions and 1589684 deletions

View File

@ -291,7 +291,7 @@ class Jvm {
static public function readFieldClosure(obj:Dynamic, name:String, parameterTypes:NativeArray<java.lang.Class<Dynamic>>):Dynamic {
var cl = (obj : java.lang.Object).getClass();
var method = cl.getMethod(name, parameterTypes);
var method = cl.getMethod(name, ...parameterTypes);
if (method.isBridge()) {
/* This is probably not what we want... go through all methods and see if we find one that
isn't a bridge. This is pretty awkward, but I can't figure out how to use the Java reflection