Repository: groovy Updated Branches: refs/heads/master bdaea0905 -> e85a1460e
GROOVY-8455: @TupleConstructor gives wrong ordering when includeSuperFields is set (fix test on older jdks) Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/e85a1460 Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/e85a1460 Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/e85a1460 Branch: refs/heads/master Commit: e85a1460ec0feb2424ca18629969c7f45e7ac2c2 Parents: bdaea09 Author: paulk <[email protected]> Authored: Tue Jan 23 10:44:37 2018 +1000 Committer: paulk <[email protected]> Committed: Tue Jan 23 10:44:37 2018 +1000 ---------------------------------------------------------------------- .../codehaus/groovy/transform/TupleConstructorTransformTest.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/e85a1460/src/test/org/codehaus/groovy/transform/TupleConstructorTransformTest.groovy ---------------------------------------------------------------------- diff --git a/src/test/org/codehaus/groovy/transform/TupleConstructorTransformTest.groovy b/src/test/org/codehaus/groovy/transform/TupleConstructorTransformTest.groovy index 9d3cacf..933b592 100644 --- a/src/test/org/codehaus/groovy/transform/TupleConstructorTransformTest.groovy +++ b/src/test/org/codehaus/groovy/transform/TupleConstructorTransformTest.groovy @@ -243,7 +243,7 @@ class TupleConstructorTransformTest extends GroovyShellTestCase { protected Long bazProtField } - assert Baz.constructors.max{ it.parameters.size() }.toString() == + assert Baz.constructors.max{ it.parameterTypes.size() }.toString() == 'public Baz(Foop,Foopubf,java.lang.Short,Barp,Barpubf,java.lang.Integer,Bazp,Bazpubf,java.lang.Long)' ''' }
