@ -301,8 +301,11 @@ let create_callee_attributes tenv program cn ms procname =
, List . map ~ f : JBasics . cn_name cm . Javalib . cm_exceptions
, false )
in
(* getting the correct path to the source is cumbersome to do here, and nothing uses this data
yet so ignore this issue * )
let translation_unit = SourceFile . invalid _ _ FILE__ in
Some
{ ( ProcAttributes . default procname ) with
{ ( ProcAttributes . default translation_unit procname) with
ProcAttributes . access ; exceptions ; method_annotation ; formals ; ret_type ; is_abstract }
with Caml . Not_found -> None
in
@ -328,7 +331,7 @@ let create_am_procdesc source_file program icfg am proc_name : Procdesc.t =
let method_annotation = JAnnotation . translate_method am . Javalib . am_annotations in
let procdesc =
let proc_attributes =
{ ( ProcAttributes . default proc_name) with
{ ( ProcAttributes . default source_file proc_name) with
ProcAttributes . access = trans_access am . Javalib . am_access
; exceptions = List . map ~ f : JBasics . cn_name am . Javalib . am_exceptions
; formals
@ -353,7 +356,7 @@ let create_native_procdesc source_file program icfg cm proc_name =
let method_annotation = JAnnotation . translate_method cm . Javalib . cm_annotations in
let procdesc =
let proc_attributes =
{ ( ProcAttributes . default proc_name) with
{ ( ProcAttributes . default source_file proc_name) with
ProcAttributes . access = trans_access cm . Javalib . cm_access
; exceptions = List . map ~ f : JBasics . cn_name cm . Javalib . cm_exceptions
; formals
@ -380,7 +383,7 @@ let create_empty_procdesc source_file program linereader icfg cm proc_name =
let formals = formals_from_signature program tenv cn ms ( JTransType . get_method_kind m ) in
let method_annotation = JAnnotation . translate_method cm . Javalib . cm_annotations in
let proc_attributes =
{ ( ProcAttributes . default proc_name) with
{ ( ProcAttributes . default source_file proc_name) with
ProcAttributes . access = trans_access cm . Javalib . cm_access
; exceptions = List . map ~ f : JBasics . cn_name cm . Javalib . cm_exceptions
; formals
@ -417,7 +420,7 @@ let create_cm_procdesc source_file program linereader icfg cm proc_name =
in
let method_annotation = JAnnotation . translate_method cm . Javalib . cm_annotations in
let proc_attributes =
{ ( ProcAttributes . default proc_name) with
{ ( ProcAttributes . default source_file proc_name) with
ProcAttributes . access = trans_access cm . Javalib . cm_access
; exceptions = List . map ~ f : JBasics . cn_name cm . Javalib . cm_exceptions
; formals