commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benedikt Ritter (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CHAIN-81) FacesWebContext.FacesWebContext(FacesContext context) ctor calls overridable method
Date Thu, 04 Jul 2013 19:21:49 GMT

     [ https://issues.apache.org/jira/browse/CHAIN-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benedikt Ritter updated CHAIN-81:
---------------------------------

    Component/s: Web
    
>  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
>          Components: Web
>    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

Mime
View raw message