In JDK code sometimes old-style initialization Throwable.cause is used - via Throwable.initCause call.
Instead of initCause, cause exception could be passed via constructor parameter.
It makes code shorter and easier to read.
Instead of initCause, cause exception could be passed via constructor parameter.
It makes code shorter and easier to read.
- relates to
-
JDK-5070673 IOException should support exception chaining
-
- Resolved
-
-
JDK-6935997 Please add a nested throwable constructor to AssertionError
-
- Closed
-