-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BigDecimal(0.0) is .equals to any other BigDecimal(double) with the same scale #8622
Comments
Reported by |
These are IMHO two different issues: the first is incorrect handling of smallValue and intVal representations in equals, while the issue in second post is caused by the fact, that behavior of GWT's double constructor differs from behavior of Java's. Proposed fix of equals (based on compareTo implementation):
|
Would you mind contributing the proposed fix to Gerrit? |
Commited as change 14877. |
Bug: gwtproject#8622 Bug-Link: http://github.com/gwtproject/gwt/issues/8622 Change-Id: I0e90487d53843f0ff1bdcc11b3aee798b62a9ac4
(Merged about three weeks after it discussed, closing now since it was missed previously) |
Originally reported on Google Code with ID 8646
Reported by
niloc132
on 2014-03-28 18:06:09The text was updated successfully, but these errors were encountered: