Issue Details (XML | Word | Printable)

Key: JAVASERVERFACES_SPEC_PUBLIC-864
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Jakob Korherr
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
javaserverfaces-spec-public

ExceptionHandler.getRootCause() should use isAssignableFrom()

Created: 08/Jul/10 02:44 AM   Updated: 19/Dec/13 10:48 PM
Component/s: Uncategorized
Affects Version/s: 2.0
Fix Version/s: 2.3

Time Tracking:
Not Specified

Environment:

Operating System: All
Platform: All
URL: https://issues.apache.org/jira/browse/MYFACES-2796


Issuezilla Id: 864
Status Whiteboard:

size_small importance_small

Tags:
Participants: Jakob Korherr and rogerk


 Description  « Hide

The spec (javadoc) of ExceptionHandler.getRootCause() currently says the
following: "Unwrap the argument t until the unwrapping encounters an Object
whose getClass() is not equal to FacesException.class or
javax.el.ELException.class. If there is no root cause, null is returned."

I think instead of checking for equals() we should check for isAssignableFrom(),
because there are a lot of sub-classes (especially for ELException), which
should also be unwrapped.

See also the related MyFaces-issue at
https://issues.apache.org/jira/browse/MYFACES-2796



rogerk added a comment - 27/Oct/10 02:28 PM

triage