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

Cleanup unnecessary calls to Throwable.initCause() in java.desktop

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P5
    • 18
    • 17
    • client-libs
    • None
    • b19

    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

              aturbanov Andrey Turbanov
              aturbanov Andrey Turbanov
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: