[ https://issues.apache.org/jira/browse/MATH-1642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17508833#comment-17508833 ]
Gilles Sadowski commented on MATH-1642: --------------------------------------- {quote}Percentile implements Serializable {quote} It doesn't anymore in the [development version|https://gitbox.apache.org/repos/asf?p=commons-math.git;a=blob;f=commons-math-legacy/src/main/java/org/apache/commons/math4/legacy/stat/descriptive/rank/Percentile.java;h=6fbfbc696fc539384c5bbaf9a42f1c8e6720ce1b;hb=HEAD] as per MATH-1594. > Percentile#evaluate() fails with NullArgumentException: input array after > deserialization > ------------------------------------------------------------------------------------------ > > Key: MATH-1642 > URL: https://issues.apache.org/jira/browse/MATH-1642 > Project: Commons Math > Issue Type: Bug > Affects Versions: 3.6.1 > Reporter: Chesnay Schepler > Priority: Major > > {{Percentile}} implements Serializable, which should allow me to create an > exact copy using java serialization. > However, {{storedData}} from {{AbstractUnivariateStatistic}} is not being > serialized, causing any {{evaluate()}} calls on the deserialized > {{Percentile}} to fail with a {{NullArgumentException}}. -- This message was sent by Atlassian Jira (v8.20.1#820001)