Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8274079

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

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P5
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 18
    • Component/s: core-libs
    • Labels:
      None
    • Resolved In Build:
      b18

      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. In some cases it allows to avoid ugly casts.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aturbanov Andrey Turbanov
              Reporter:
              aturbanov Andrey Turbanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: