You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2012/05/05 00:09:47 UTC

[jira] [Updated] (MATH-760) DescriptiveStatistics.windowSize has a getter and setter, but is protected, so subclasses can bypass the validation check in the setter

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

Thomas Neidhart updated MATH-760:
---------------------------------

    Fix Version/s: 4.0
    
> DescriptiveStatistics.windowSize has a getter and setter, but is protected, so subclasses can bypass the validation check in the setter
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: MATH-760
>                 URL: https://issues.apache.org/jira/browse/MATH-760
>             Project: Commons Math
>          Issue Type: Bug
>            Reporter: Sebb
>             Fix For: 4.0
>
>
> DescriptiveStatistics.windowSize has a setter which does validation and maintains the list if necessary.
> However the field is protected, so classes can ignore the setter.
> As it happens, this is exactly what the subclass ListUnivariateImpl.setWindowSize does.
> The field should be made private.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira