Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1361

ExceptionUtils.getThrowableList() is using deprecated ExceptionUtils.getCause()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.6
    • 3.7
    • lang.exception.*
    • None

    Description

      Though ExceptionUtils.getCause is deprecated it's used internally, for example in ExceptionUtils.getThrowables.
      We noticed this while running performance tests where a large number of NoSuchMethod exceptions where seen since ExceptionUtils.getCause catches them repeatedly. Unless initialised carefully, creating exceptions has the overhead of filling the stack trace which was our performance concern.

      Attachments

        Activity

          People

            Unassigned Unassigned
            afelisatti Ana
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: