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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 18
    • None
    • core-libs
    • None
    • b25

      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.

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

              Created:
              Updated:
              Resolved: