Browse Source

[java] Disable Date deprecation notices

Cauê Waneck 11 years ago
parent
commit
e4984ca3f9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      genjava.ml

+ 1 - 1
genjava.ml

@@ -2461,7 +2461,7 @@ let convert_java_enum ctx p pe =
     ) field.jf_flags;
 
     List.iter (function
-      | AttrDeprecated -> cff_meta := (Meta.Deprecated, [], p) :: !cff_meta
+      | AttrDeprecated when jc.cpath <> (["java";"util"],"Date") -> cff_meta := (Meta.Deprecated, [], p) :: !cff_meta
       (* TODO: pass anotations as @:meta *)
       | AttrVisibleAnnotations ann ->
         List.iter (function