浏览代码

another fix

Simon Krajewski 5 年之前
父节点
当前提交
5555a730a6
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/generators/genjava.ml

+ 2 - 2
src/generators/genjava.ml

@@ -1276,8 +1276,8 @@ let generate con =
 								path_s_import pos (["java";"lang"], "Class") []
 						| _ ->
 								path_s_import pos (["java";"lang"], "Object") [])
-					| TDynamic ->
-							path_s_import pos (["java";"lang"], "Object") []
+				| TDynamic | TAbstract({a_path=([],"Dynamic")},_) ->
+					path_s_import pos (["java";"lang"], "Object") []
 				(* No Lazy type nor Function type made. That's because function types will be at this point be converted into other types *)
 				| _ -> if !strict_mode then begin trace ("[ !TypeError " ^ (Type.s_type (Type.print_context()) t) ^ " ]"); die "" __LOC__ end else "[ !TypeError " ^ (Type.s_type (Type.print_context()) t) ^ " ]"
 		end