Closed RyanHoldren closed 6 years ago
Have to look at it. Out of curiosity, did you try with a release version like 1.0 or 1.1, too? Just trying to verify if it existed there or came up with modularization?
It looks like 1.0 doesn't throw an exception. Instead it returns the current exchange rate rather than the historical.
Ok, hard to say which one is better. Some may say throwing an exception is better than incorrect data. Will look into it.
For reasons of backward-compatibility the 1.0 behavior seems preferred.
You try to pass your date as java.time.LocalDate
, which is a JDK 8 type not available in JDK 7. The backport explicitly uses JDK7, so it is not aware of this type. Use the jsr354-ri with JDK8, please.
So is there any problem on the JSR side or mainly on how @RyanHoldren's application tries to call RI and API?
It is the wrong parameter for the bp RI. Use either the Java 8 RI, or use Date or the LocalDate copy that comes with bp-ri. Issue closed.
I can't seem to get historical rates to work. I've tried a bunch of variations, but I either get the current exchange rate or this exception:
Here is an example of one of my attempts: