Fix test: BigInteger.longValueExact added in 1.8 Use longValue instead since it still verifies the fix and works for Java 1.7.
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/96b2e036 Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/96b2e036 Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/96b2e036 Branch: refs/heads/GROOVY_2_4_X Commit: 96b2e0366467a30ac7f4b536f5a6c89a0ab5a139 Parents: 8fbb462 Author: John Wagenleitner <[email protected]> Authored: Wed Nov 16 15:35:24 2016 -0800 Committer: John Wagenleitner <[email protected]> Committed: Wed Nov 16 15:40:35 2016 -0800 ---------------------------------------------------------------------- src/test/groovy/PrimitiveTypesTest.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/96b2e036/src/test/groovy/PrimitiveTypesTest.groovy ---------------------------------------------------------------------- diff --git a/src/test/groovy/PrimitiveTypesTest.groovy b/src/test/groovy/PrimitiveTypesTest.groovy index bbc2f90..eacd6d8 100644 --- a/src/test/groovy/PrimitiveTypesTest.groovy +++ b/src/test/groovy/PrimitiveTypesTest.groovy @@ -86,7 +86,7 @@ class PrimitiveTypesTest extends GroovyTestCase { void testBigInteger2BigDecimal() { BigInteger big = new BigInteger(Long.MAX_VALUE) - assert big.longValueExact() == testMethod(big).longValueExact() + assert big.longValue() == testMethod(big).longValueExact() } private testMethod(BigDecimal bd) {
