DenseLocalDateDoubleTimeSeries union seems buggy

When performing a union on a DenseLocalDateDoubleTimeSeries A with a DenseLocalDateDoubleTimeSeries B the builder ignores the points in B when determining if there are any weekends.

This can lead to the wrong DenseTimeSeriesCalculation being used.

E.g. I union a series without weekends with one that contains weekends where the last date is a weekend. If the end date is a Monday and the series contains a point of the previous Sunday this will cause an ArrayIndexOutOfBoundsException.

Looks like a bug, would anyone be able to confirm?

Thanks!

Thanks for the report. See https://github.com/OpenGamma/Strata/pull/2355

1 Like