You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/08/30 02:35:54 UTC

DO NOT REPLY [Bug 30929] New: - Nestable.indexOfThrowable(Class) uses Class.equals() to match

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30929>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30929

Nestable.indexOfThrowable(Class)  uses Class.equals() to match

           Summary: Nestable.indexOfThrowable(Class)  uses Class.equals() to
                    match
           Product: Commons
           Version: 2.0 Final
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Lang
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: Shorn.Tolley@nrm.qld.gov.au


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.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org