groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject [1/2] groovy git commit: GROOVY-8455: @TupleConstructor gives wrong ordering when includeSuperFields is set (fix test on older jdks)
Date Tue, 23 Jan 2018 01:39:57 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X ff56ec147 -> 09e4a10de


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/02008fb1
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/02008fb1
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/02008fb1

Branch: refs/heads/GROOVY_2_5_X
Commit: 02008fb11a696e2cdf82a8f8bddb5aafc08628bf
Parents: ff56ec1
Author: paulk <paulk@asert.com.au>
Authored: Tue Jan 23 10:44:37 2018 +1000
Committer: paulk <paulk@asert.com.au>
Committed: Tue Jan 23 11:39:41 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/02008fb1/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)'
         '''
     }


Mime
View raw message