Caue Waneck %!s(int64=13) %!d(string=hai) anos
pai
achega
778577fd3c
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      std/java/_std/haxe/lang/Runtime.hx

+ 1 - 3
std/java/_std/haxe/lang/Runtime.hx

@@ -395,8 +395,6 @@ package haxe.lang;
 					}
 				}
 				
-				if (realMsl == 0)
-					throw haxe.lang.HaxeException.wrap("No compatible method found for: " + field);
 			} else {
 				hasNumber = true;
 			}
@@ -405,7 +403,7 @@ package haxe.lang;
 		
 		java.lang.reflect.Method found;
 		if (ms.length == 0 || (found = ms[0]) == null)
-			throw haxe.lang.HaxeException.wrap("Method not found: " + field);
+			throw haxe.lang.HaxeException.wrap("No compatible method found for: " + field);
 		
 		if (hasNumber)
 		{