Repository: groovy Updated Branches: refs/heads/GROOVY_2_6_X 43d661c4f -> 09c84a54b
Refine the test for GROOVY-8228 (cherry picked from commit 9210150) Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/09c84a54 Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/09c84a54 Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/09c84a54 Branch: refs/heads/GROOVY_2_6_X Commit: 09c84a54bd66f78227cb7e9ccafbea189098a480 Parents: 43d661c Author: sunlan <sun...@apache.org> Authored: Wed Aug 9 08:05:27 2017 +0800 Committer: sunlan <sun...@apache.org> Committed: Wed Aug 9 08:06:05 2017 +0800 ---------------------------------------------------------------------- .../parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/09c84a54/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy ---------------------------------------------------------------------- diff --git a/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy b/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy index a82c58d..39dd35c 100644 --- a/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy +++ b/subprojects/parser-antlr4/src/test/resources/bugs/GROOVY-8228.groovy @@ -77,7 +77,7 @@ assert ['JSR308Interface1<java.lang.String>', 'JSR308Interface2<java.lang.String Method testMethod = JSR308Class.class.getDeclaredMethods().find(e -> e.name == 'test') assert [IOException, SQLException] == testMethod.getAnnotatedExceptionTypes().collect(e -> e.type) assert 'java.util.List<java.lang.String>' == testMethod.getAnnotatedReturnType().type.typeName -assert ['java.util.List<?>'] == testMethod.getAnnotatedParameterTypes().collect(e -> e.type.typeName) +assert ['java.util.List<?>', 'java.util.List'].contains(testMethod.getAnnotatedParameterTypes().collect(e -> e.type.typeName).get(0)) Method test2Method = JSR308Class.class.getDeclaredMethods().find(e -> e.name == 'test2') assert JSR308Class.class == test2Method.getAnnotatedReceiverType().type