commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc Maisonobe (Resolved) (JIRA)" <>
Subject [jira] [Resolved] (MATH-742) Please make PolynomialSplineFunction Serializable
Date Thu, 16 Feb 2012 16:37:07 GMT


Luc Maisonobe resolved MATH-742.

    Resolution: Won't Fix

After a discussion on the developers list, the consensus reached was to not set up Serializable
for this kind of objects. See the mailing lists archives for the complete thread.

There are several workarounds you can use to solve your problem.

You could use a custom derived class that would implement Serialible. The only code you would
have to write is the constructors that would call the constructors of the base class.

An alternative solution would be to keep the existing non serializable class as is but implement
Serialization by custom code on the application level. This would work of course only if you
have access to the serialization framework code.

> Please make PolynomialSplineFunction Serializable
> -------------------------------------------------
>                 Key: MATH-742
>                 URL:
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 2.2
>            Reporter: Neil Roeth
>            Priority: Minor
>         Attachments:
> PolynomialSplineFunction is not Serializable, while the very similar PolynomialFunction
class in the same package is. All that needs to be done is to add the import:
> {{import;}}
> and change this:
> {{public class PolynomialSplineFunction implements DifferentiableUnivariateRealFunction}}
> to this:
> {{public class PolynomialSplineFunction implements DifferentiableUnivariateRealFunction,
> I made exactly that modification to a local copy and it serialized successfully.  Before
the change, I got serialization errors.
> Thanks.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message