[java] catch `Failure` to avoid crashing on invalid class type signatures

Summary: Javalib is not happy about some class signature, let's try to silence it temporarily.

Reviewed By: ngorogiannis

Differential Revision: D16917273

fbshipit-source-id: 39ce4adee
master
Jules Villard 5 years ago committed by Facebook Github Bot
parent 0af754f3d7
commit de3f97136e

@ -283,7 +283,7 @@ let lookup_node cn program =
| JBasics.No_class_found _ ->
(* TODO T28155039 Figure out when and what to log *)
None
| (JBasics.Class_structure_error _ | Invalid_argument _) as exn ->
| (JBasics.Class_structure_error _ | Invalid_argument _ | Failure _) as exn ->
L.internal_error "ERROR: %s@." (Exn.to_string exn) ;
None )

Loading…
Cancel
Save