RFR: 8364588: Export the NPE backtracking functionality to general null-checking APIs [v4]

ExE Boss duke at openjdk.org
Wed Aug 6 08:56:10 UTC 2025


On Wed, 6 Aug 2025 06:55:54 GMT, David Holmes <dholmes at openjdk.org> wrote:

>> https://openjdk.org/jeps/492
>
> And now final - https://openjdk.org/jeps/513
> 
> Thanks

It’s necessary to do this before the `this()`/`super()` call, as the `Throwable(…)` constructors call `this.fillInStackTrace()`:
https://github.com/openjdk/jdk/blob/e304d37996b075b8b2b44b5762d7d242169add49/src/java.base/share/classes/java/lang/Throwable.java#L263-L264

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26600#discussion_r2256443245


More information about the security-dev mailing list