ImmutableRatesProvider Bug - Read from json fails


#1

Morning guys,

Firstly, awesome library.

I found that the following works …

ImmutableRatesProvider ratesProvider = ImmutableRatesProvider.builder(VAL_DATE).build();
JodaBeanSer ser = JodaBeanSer.COMPACT;
String result = ser.xmlWriter().write(ratesProvider);
Bean cycled = ser.xmlReader().read(result);

But the following fails

ImmutableRatesProvider ratesProvider = ImmutableRatesProvider.builder(VAL_DATE).build();
JodaBeanSer ser = JodaBeanSer.COMPACT;
String result = ser.jsonWriter().write(ratesProvider);
Bean cycled = ser.jsonReader().read(result);

Writing json works, but reading it back in fails.

Best.


#2

Thanks for the bug report. This has been fixed in Joda-Beans v1.10.1:

https://github.com/JodaOrg/joda-beans/issues/147
http://www.joda.org/joda-beans/changes-report.html#a1.10.1


#3

Awesome,
Many thanks, will update my local build,
Best.