DelegatingExceptionHandler should not try to instantiate abstract
AutoExceptionHandlers
---------------------------------------------------------------------------------------
Key: STS-482
URL: http://www.stripesframework.org/jira/browse/STS-482
Project: Stripes
Issue Type: Bug
Affects Versions: Release 1.4.3
Reporter: Andrew
Assignee: Tim Fennell
The {{addHandler(final Class<? extends AutoExceptionHandler> handlerClass)}}
method in {{DelegatingExceptionHandler}} does not check whether the
handlerClass is abstract. This means that if you have a convenience method
handle(final MyException exception, final HttpServletRequest request, final
HttpServletResponse response)
in your abstract AutoExceptionHandler which is called by subclasses, you will
get a {{java.lang.InstantiationException}} as an attempt is made to instantiate
the abstract class.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development