Pārlūkot izejas kodu

[jvm] embrace the Java way

Simon Krajewski 5 gadi atpakaļ
vecāks
revīzija
a7d7400369
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  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