Selaa lähdekoodia

[jvm] embrace the Java way

Simon Krajewski 5 vuotta sitten
vanhempi
commit
a7d7400369
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  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