Explorar o código

[jvm] embrace the Java way

Simon Krajewski %!s(int64=5) %!d(string=hai) anos
pai
achega
a7d7400369
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/generators/jvm/jvmFunctions.ml

+ 1 - 2
src/generators/jvm/jvmFunctions.ml

@@ -181,8 +181,7 @@ class typed_functions = object(self)
 			)
 		) in
 		let def = (fun () ->
-			jm#string "Invalid call";
-			jm#invokestatic (["haxe";"jvm"],"Exception") "wrap" (method_sig [object_sig] (Some exception_sig));
+			jm#construct ConstructInit (["java";"lang"],"IllegalArgumentException") (fun () -> []);
 			jm#get_code#athrow;
 			jm#set_terminated true;
 		) in