commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1309) RNG: public "setSeed" method should not be called from inside the constructor
Date Tue, 29 Dec 2015 00:58:49 GMT

    [ https://issues.apache.org/jira/browse/MATH-1309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15073326#comment-15073326
] 

Gilles commented on MATH-1309:
------------------------------

http://stackoverflow.com/questions/3404301/whats-wrong-with-overridable-method-calls-in-constructors

> RNG: public "setSeed" method should not be called from inside the constructor
> -----------------------------------------------------------------------------
>
>                 Key: MATH-1309
>                 URL: https://issues.apache.org/jira/browse/MATH-1309
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.5
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Minor
>             Fix For: 4.0
>
>
> It is dangerous to call an overridable method from inside a constructor.



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

Mime
View raw message