Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Multiplication error fix and additional tests for the add method of FastMoney #25

Merged
merged 11 commits into from
Nov 11, 2016

Conversation

joe-bookwood
Copy link

No description provided.

@joe-bookwood joe-bookwood changed the title Multiplication error fix and additional tests in the add method of FastMoney Multiplication error fix and additional tests for the add method of FastMoney Nov 10, 2016
@otaviojava
Copy link
Member

Thanks for your contribution.
Could you put this PR on RI too?
https://github.com/JavaMoney/jsr354-ri

Thanks

@keilw keilw merged commit a5c4239 into JavaMoney:master Nov 11, 2016
@joe-bookwood
Copy link
Author

We don't need to put this PR to RI, because RI uses the new Java 8 Math.multiplyExact method.

Please tell me when you plan to deploy a new release with this fix to maven central.

@otaviojava
Copy link
Member

Thanks.

@keilw
Copy link
Member

keilw commented Nov 14, 2016

In Moneta-BP there needs to be an equivalent to multiplyExact!

@joe-bookwood
Copy link
Author

@keilw my fix repair the multiplyExact equivalent method, because this method does not exist Java 7. If you multiply x with zero you got x and not zero, if you use the current version 1.0 or 1.1 from maven central. This is the error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants