[
https://issues.apache.org/jira/browse/CHAIN-81?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13640681#comment-13640681
]
Sebb commented on CHAIN-81:
---------------------------
Same applies to PortletWebContext.PortletWebContext
> FacesWebContext.FacesWebContext(FacesContext context) ctor calls overridable
> method
> ------------------------------------------------------------------------------------
>
> Key: CHAIN-81
> URL: https://issues.apache.org/jira/browse/CHAIN-81
> Project: Commons Chain
> Issue Type: Bug
> Affects Versions: 2.0
> Reporter: Sebb
>
> Ctors should never call overrideable methods.
> In this case, the called method only sets the context, so the code could be
> copied.
> If it's essential to give overridable access to a method called by a ctor,
> create a private method to do the work and call it from ctor and the exported
> method.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira