소스 검색

[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