You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2017/10/05 05:28:32 UTC
groovy git commit: Refine error messages
Repository: groovy
Updated Branches:
refs/heads/master 35ae8e484 -> a4306dcb7
Refine error messages
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/a4306dcb
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/a4306dcb
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/a4306dcb
Branch: refs/heads/master
Commit: a4306dcb76579907f4d054e2ea630d16c148de05
Parents: 35ae8e4
Author: sunlan <su...@apache.org>
Authored: Thu Oct 5 13:28:25 2017 +0800
Committer: sunlan <su...@apache.org>
Committed: Thu Oct 5 13:28:25 2017 +0800
----------------------------------------------------------------------
src/test/gls/generics/GenericsTest.groovy | 2 +-
src/test/groovy/bugs/Groovy5318Bug.groovy | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/a4306dcb/src/test/gls/generics/GenericsTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/gls/generics/GenericsTest.groovy b/src/test/gls/generics/GenericsTest.groovy
index 3fe0e69..2a57ec5 100644
--- a/src/test/gls/generics/GenericsTest.groovy
+++ b/src/test/gls/generics/GenericsTest.groovy
@@ -398,7 +398,7 @@ import java.util.concurrent.atomic.AtomicInteger
} else {
shouldFailCompilationWithMessage """
def list1 = new ArrayList<Integer()
- """, "Unexpected input: 'new ArrayList<Integer('"
+ """, "Unexpected input:"
shouldFailCompilationWithMessage """
List<Integer list2 = new ArrayList<Integer>()
http://git-wip-us.apache.org/repos/asf/groovy/blob/a4306dcb/src/test/groovy/bugs/Groovy5318Bug.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/bugs/Groovy5318Bug.groovy b/src/test/groovy/bugs/Groovy5318Bug.groovy
index bf2610a..8feaf6d 100644
--- a/src/test/groovy/bugs/Groovy5318Bug.groovy
+++ b/src/test/groovy/bugs/Groovy5318Bug.groovy
@@ -31,7 +31,7 @@ class Groovy5318Bug extends CompilableTestSupport {
if (ParserVersion.V_2 == CompilerConfiguration.DEFAULT.parserVersion) {
assert message.contains('Unexpected type arguments found prior to: ArrayList')
} else {
- assert message.contains('Unexpected input: \'new java.util<Integer>.\'')
+ assert message.contains('Unexpected input:')
}
}
}