We use zio.Cause.squashTraceWith to attach ZIO traces to exceptions in tests, this starts failing since at least JVM 16 because of forbidden illegal reflective access:
Need to find another way to propagate info, e.g. go back to printing entire Cause, or attach to getMessage instead of Throwable#cause
We use
zio.Cause.squashTraceWith
to attach ZIO traces to exceptions in tests, this starts failing since at least JVM 16 because of forbidden illegal reflective access:Need to find another way to propagate info, e.g. go back to printing entire Cause, or attach to
getMessage
instead ofThrowable#cause