Reflection invocation은 target exception을 원래 cause로 복원해야 한다
InvocationTargetException을 그대로 던지면 caller와 rollback rule이 예상한 type을 잃는다.
- 1. Proxy enter
Method 확보
- 2. Invoke target
arguments 전달
- 3. Unwrap
target cause 추출
- 4. Return·throw
계약 type 보존
InvocationTargetException을 그대로 던지면 caller와 rollback rule이 예상한 type을 잃는다.
Method 확보
arguments 전달
target cause 추출
계약 type 보존