Repository: groovy Updated Branches: refs/heads/parrot 08ebc38cb -> 8b4cdff35
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/1b69ad6f Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/1b69ad6f Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/1b69ad6f Branch: refs/heads/parrot Commit: 1b69ad6f2c5d2c1f98684164360042d6b5069e3e Parents: bc90dd9 Author: John Wagenleitner <jwagenleit...@apache.org> Authored: Wed Nov 16 15:35:24 2016 -0800 Committer: John Wagenleitner <jwagenleit...@apache.org> Committed: Wed Nov 16 15:35:24 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/1b69ad6f/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) {