Running ./make.sh
produces a recording.jfr
.
This uses a custom default-with-all-exceptions.jfc
; those can be created by importing
an e.g. jdk1.8.0_92-ORACLE/jre/lib/jfr/default.jfc
into the JMC UI (Window > Flight Record Template Manager),
then edited. NB must re-Export File after change.
Opening recording.jfr
only contains the Error
thrown in the Main
class, never the IOException
.
In the custom JFC used, the exception-level
has been changed from the default errors
to all
.
This custom JFC actually works in a "real" app; there just appears to be some .. optimization (?) which make it not work in a trivialized short lived test example like this.