RFR: 8274079: Cleanup unnecessary calls to Throwable.initCause() in java.base module

Pavel Rappo prappo at openjdk.java.net
Tue Sep 21 13:57:37 UTC 2021


On Thu, 16 Sep 2021 19:03:26 GMT, Andrey Turbanov <github.com+741251+turbanoff at openjdk.org> wrote:

> Pass "cause" exception as constructor parameter is shorter and easier to read.

This will need to be thoroughly tested to make sure there were no implicit dependencies on now-removed happens-before edges (`initCause` is synchronized). That said, the idea behind this clean-up looks good.

-------------

PR: https://git.openjdk.java.net/jdk/pull/5551


More information about the security-dev mailing list