commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CODEC-215) Constructors must not call overrideable methods
Date Thu, 19 May 2016 15:35:13 GMT

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

Sebb resolved CODEC-215.
------------------------
    Resolution: Fixed

URL: http://svn.apache.org/viewvc?rev=1744596&view=rev
Log:
CODEC-215 Constructors must not call overrideable methods

Modified:
    commons/proper/codec/trunk/src/main/java/org/apache/commons/codec/digest/PureJavaCrc32.java


> Constructors must not call overrideable methods
> -----------------------------------------------
>
>                 Key: CODEC-215
>                 URL: https://issues.apache.org/jira/browse/CODEC-215
>             Project: Commons Codec
>          Issue Type: New Feature
>            Reporter: Sebb
>
> Constructors must not call overrideable methods.
> An object is not guaranteed fully constructed until the constructor exits, so the subclass
override may not see the correct parent object.
> This applies to:
> PureJavaCrc32



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message