Sfoglia il codice sorgente

[jvm] avoid Java 1.8 API

closes #9254
Simon Krajewski 5 anni fa
parent
commit
bffa68a939
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      std/jvm/Jvm.hx

+ 1 - 1
std/jvm/Jvm.hx

@@ -287,7 +287,7 @@ class Jvm {
 				isn't a bridge. This is pretty awkward, but I can't figure out how to use the Java reflection
 				API properly. */
 			for (meth in cl.getMethods()) {
-				if (meth.getName() == name && !meth.isBridge() && method.getParameterCount() == parameterTypes.length) {
+				if (meth.getName() == name && !meth.isBridge() && method.getParameterTypes().length == parameterTypes.length) {
 					method = meth;
 					break;
 				}