You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2017/07/14 01:14:58 UTC

groovy git commit: GROOVY-8236: Report more meaningful error for versions of Groovy not supporting @Repeatable (fix for jdk < 1.8)

Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X 3f5dc7ea2 -> 4d50fa17b


GROOVY-8236: Report more meaningful error for versions of Groovy not supporting @Repeatable (fix for jdk < 1.8)


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

Branch: refs/heads/GROOVY_2_4_X
Commit: 4d50fa17bc09e7c7c3448b85b7c824db4ee68db8
Parents: 3f5dc7e
Author: paulk <pa...@asert.com.au>
Authored: Fri Jul 14 11:14:36 2017 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Fri Jul 14 11:14:36 2017 +1000

----------------------------------------------------------------------
 src/test/gls/annotations/AnnotationTest.groovy | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/4d50fa17/src/test/gls/annotations/AnnotationTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/gls/annotations/AnnotationTest.groovy b/src/test/gls/annotations/AnnotationTest.groovy
index 175adce..57ae55d 100644
--- a/src/test/gls/annotations/AnnotationTest.groovy
+++ b/src/test/gls/annotations/AnnotationTest.groovy
@@ -658,6 +658,8 @@ class AnnotationTest extends CompilableTestSupport {
 
     // GROOVY-8236
     void testAnnotationWithRepeated() {
+        // @Repeatable is 1.8+
+        if (System.getProperty('java.specification.version') < '1.8') return
         def errorMessage = shouldNotCompile '''
             import java.lang.annotation.*