groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Refine error messages
Date Thu, 05 Oct 2017 05:29:13 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X e9294f56f -> 0b9db15f7


Refine error messages

(cherry picked from commit a4306dc)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/0b9db15f
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/0b9db15f
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/0b9db15f

Branch: refs/heads/GROOVY_2_6_X
Commit: 0b9db15f7073659b998b8ae12b21fd0c228fe5a5
Parents: e9294f5
Author: sunlan <sunlan@apache.org>
Authored: Thu Oct 5 13:28:25 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Thu Oct 5 13:29:06 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/0b9db15f/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/0b9db15f/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:')
         }
     }
 }


Mime
View raw message