groovy git commit: GROOVY-8764: Closure inside an anonymous class uses wrong outside class instance with @CS (for for jdk7)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

groovy git commit: GROOVY-8764: Closure inside an anonymous class uses wrong outside class instance with @CS (for for jdk7)

paulk
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X fd21ad4e3 -> 59704c8d9


GROOVY-8764: Closure inside an anonymous class uses wrong outside class instance with @CS (for for jdk7)


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

Branch: refs/heads/GROOVY_2_5_X
Commit: 59704c8d92ed47cbe84e6ff9046920c209daa8a9
Parents: fd21ad4
Author: Paul King <[hidden email]>
Authored: Wed Oct 10 22:40:33 2018 +1000
Committer: Paul King <[hidden email]>
Committed: Wed Oct 10 22:40:33 2018 +1000

----------------------------------------------------------------------
 src/test/groovy/bugs/Groovy8764Bug.groovy | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/59704c8d/src/test/groovy/bugs/Groovy8764Bug.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/bugs/Groovy8764Bug.groovy b/src/test/groovy/bugs/Groovy8764Bug.groovy
index a092574..5a842f2 100644
--- a/src/test/groovy/bugs/Groovy8764Bug.groovy
+++ b/src/test/groovy/bugs/Groovy8764Bug.groovy
@@ -43,6 +43,7 @@ class Groovy8764Bug extends GroovyTestCase {
     }
 
     void testDgmMethodInClosureInInnerClass() {
+        if (System.getProperty('java.specification.version') < '1.8') return
         assertScript '''
         import groovy.transform.*
         import java.util.function.Function