Repository: groovy Updated Branches: refs/heads/master aaf789f14 -> 2c96f9ec7
Fix the failing build Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/2c96f9ec Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/2c96f9ec Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/2c96f9ec Branch: refs/heads/master Commit: 2c96f9ec7c33d9d50109d16cec84538b01b40b54 Parents: aaf789f Author: Daniel Sun <[email protected]> Authored: Sat Aug 4 08:29:03 2018 +0800 Committer: Daniel Sun <[email protected]> Committed: Sat Aug 4 08:29:03 2018 +0800 ---------------------------------------------------------------------- .../codehaus/groovy/ast/builder/AstSpecificationCompiler.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/2c96f9ec/src/main/groovy/org/codehaus/groovy/ast/builder/AstSpecificationCompiler.groovy ---------------------------------------------------------------------- diff --git a/src/main/groovy/org/codehaus/groovy/ast/builder/AstSpecificationCompiler.groovy b/src/main/groovy/org/codehaus/groovy/ast/builder/AstSpecificationCompiler.groovy index 7c68a55..c596a66 100644 --- a/src/main/groovy/org/codehaus/groovy/ast/builder/AstSpecificationCompiler.groovy +++ b/src/main/groovy/org/codehaus/groovy/ast/builder/AstSpecificationCompiler.groovy @@ -169,10 +169,10 @@ class AstSpecificationCompiler implements GroovyInterceptable { def oldProps = new ArrayList(expression) expression.clear() new AstSpecificationCompiler(argBlock) - ASTNode result = (ASTNode) constructorStatement(expression) // invoke custom constructor for node + def result = constructorStatement(expression) // invoke custom constructor for node expression.clear() expression.addAll(oldProps) - expression.add(result) + ((List) expression).add(result) } /**
