I mean, remembering that fortran doesnt have exception semantics, what can I do when it invokes a language that does?
e
elizarov
08/15/2017, 8:44 AM
I’d suggest to catch all Java exceptions on Java side and pass them back to fortran code via some other means (error code, special result, etc)
g
groostav
08/15/2017, 8:29 PM
Yeah that's what we're doing, so our users should be fine, what I'm really looking for is something that improves dev quality of life. Honestly what I might do update JNA such that unhandled exceptions are logged and a
System.exit()
call is made. Saves a debugging dev from the torrent of unrelated information hes about to get.