Explorar o código

[jvm] embrace the Java way

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

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

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