Browse Source

[java] minor

Caue Waneck 13 years ago
parent
commit
778577fd3c
1 changed files with 1 additions and 3 deletions
  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)
 		{