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/06/19 09:47:53 UTC

groovy git commit: fix for jdk < 1.8

Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X c29cf2f30 -> 91b0872ed


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/91b0872e
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/91b0872e
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/91b0872e

Branch: refs/heads/GROOVY_2_5_X
Commit: 91b0872ed0f372e69d88116309b6b2a1a604474a
Parents: c29cf2f
Author: paulk <pa...@asert.com.au>
Authored: Mon Jun 19 19:47:43 2017 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Mon Jun 19 19:47:43 2017 +1000

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


http://git-wip-us.apache.org/repos/asf/groovy/blob/91b0872e/src/test/gls/annotations/AnnotationTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/gls/annotations/AnnotationTest.groovy b/src/test/gls/annotations/AnnotationTest.groovy
index 80e4242..af32e9b 100644
--- a/src/test/gls/annotations/AnnotationTest.groovy
+++ b/src/test/gls/annotations/AnnotationTest.groovy
@@ -680,6 +680,7 @@ class AnnotationTest extends CompilableTestSupport {
 
     // GROOVY-8226
     void testAnnotationOnParameterType() {
+        if (System.getProperty('java.specification.version') < '1.8') return
         assertScript '''
             import java.lang.annotation.*
             import static java.lang.annotation.ElementType.*