You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Michael Yannakopoulos (JIRA)" <ji...@apache.org> on 2011/01/05 22:21:45 UTC

[jira] Commented: (MATH-422) Constructor calls overrideable methods

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

Michael Yannakopoulos commented on MATH-422:
--------------------------------------------

As far as the ComplexFormat string is concerned i believe that setters and getters are useful and it's safer to be called by the constructor that Sebb mentions... I'm on my way to try to understand what MicrosphereInterpolator class does...

> Constructor calls overrideable methods
> --------------------------------------
>
>                 Key: MATH-422
>                 URL: https://issues.apache.org/jira/browse/MATH-422
>             Project: Commons Math
>          Issue Type: Bug
>            Reporter: Sebb
>             Fix For: 3.0
>
>
> The ctor MicrosphereInterpolator(int microsphereElements, int brightnessExponent) calls 2 public setters that are not final.
> This is unsafe if the class is ever extended.
> Likewise for ComplexFormat(String imaginaryCharacter, NumberFormat realFormat,  NumberFormat imaginaryFormat)
> Are the setters even needed?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.