[
http://www.stripesframework.org/jira/browse/STS-487?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Gunter resolved STS-487.
----------------------------
Resolution: Fixed
Fix Version/s: Release 1.5
Assignee: Ben Gunter (was: Frederic Daoud)
Fixed for 1.5. Throws a StripesRuntimeException with an explanation of the
problem when multiple @DefaultHandlers are found in a class. Also throws a
similar exception when it detects multiple handlers in a class for a single
event, which could happen when using @HandlesEvent. Care was taken not to raise
a false alarm when a subclass overrides its superclass's event handlers.
Sorry to steal this one from you, Freddy, but I was in there working on this
class and figured I'd go ahead and take care of this.
> Throw exception on multiple @DefaultHandler methods
> ---------------------------------------------------
>
> Key: STS-487
> URL: http://www.stripesframework.org/jira/browse/STS-487
> Project: Stripes
> Issue Type: Improvement
> Components: ActionBean Dispatching
> Affects Versions: Release 1.5
> Reporter: Frederic Daoud
> Assignee: Ben Gunter
> Priority: Minor
> Fix For: Release 1.5
>
>
> Just like STS-72, I'd like to flag an error when multiple @DefaultHandler
> annotations are found in the same Action Bean.
> Right now when a user inadvertently does this, one of the methods is
> arbitrarily chosen as the default.
> I think it would be better to indicate an error.
> Any +1 on this or reasons why it would not be a good idea, would be
> apprieciated.
--
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