浏览代码

[jvm] embrace the Java way

Simon Krajewski 5 年之前
父节点
当前提交
eb9a513521
共有 1 个文件被更改,包括 1 次插入4 次删除
  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