-
Notifications
You must be signed in to change notification settings - Fork 89
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
In Groovy, can't use == to compare OmniDivisibleValue or large OmniIndivisibleValue #109
Comments
@dexX7 Looks like we'll have to use
Until we can get a fixed version of Groovy. It definitely reduces the "Joy of Spock". |
Wow, looks like there is a PR for this in Groovy: apache/groovy#151 |
That's what Pascal said in the JIRA issue 7608. Did you try my PR; and confirmed it fixes both your testcases? |
Thanks, @tkruse I'll give it a try soon. |
Groovy 7608 is fixed and I've verified that it fixes the issue in OmniJ. The fix is scheduled to be in Groovy 2.5.0-beta1. Sorry @tkruse for not being able to test earlier. |
As of ad3a7cc we have Groovy 2.5.0-beta-1 on the It's probably too soon to start removing the work-arounds, because I'd like to be able to easily fallback to Groovy 2.4.x if we notice any issues. Once we're confident that Groovy 2.5.0-xxx is stable enough we can start removing some of the work-arounds. |
Due to a bug in Groovy, unknown subclasses of
Number
are converted toInteger
before numerical comparison with==
. Thus the following fails:and this does not fail:
I've reported this to Apache Groovy via JIRA as GROOVY-7608 .
The text was updated successfully, but these errors were encountered: