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

[lang] Nestable.indexOfThrowable(Class) uses Class.equals() to match

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0
    • 2.1
    • None
    • None
    • Operating System: other
      Platform: Other

    • 30929

    Description

      The indexOfThrowable() method should use Class.isAssignableFrom() to find the
      nested esception so that it can find subclasses of the given exception.

      Or alternatively, the javadoc should state the usage of Class.equals()
      explicitly so that people that go looking for SQLExceptions know that the method
      is useless to them and that they'll need to write their own.

      Attachments

        Activity

          People

            Unassigned Unassigned
            shorn.tolley@nrm.qld.gov.au Shorn Tolley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: