JDK-8282574 : Cleanup unnecessary calls to Throwable.initCause() in jdk.compiler
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-03-02
  • Updated: 2022-03-19
  • Resolved: 2022-03-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19 masterFixed
Related Reports
Relates :  
Relates :  
Description
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.
Comments
Changeset: e8caf84f Author: Andrey Turbanov <aturbanov@openjdk.org> Date: 2022-03-19 13:29:49 +0000 URL: https://git.openjdk.java.net/jdk/commit/e8caf84fb9dfcbb59da6459972724b6780b0871a
19-03-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/7662 Date: 2022-03-02 18:43:35 +0000
02-03-2022