Using Byte Buddy should not affect the type of some specific exceptions. For example the current code would wrap an EntityNotFoundException into a generic
new Exception( t.getCause() );
This was discovered by running the existing tests after switching the default enhancer to Byte Buddy: GetLoadJpaComplianceTest would fail. |