Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X eb3494ef7 -> 781f15cc1


GROOVY-8872: Populate the parameter names from the byte code when available 
(fix for JDK7 plus remove unused imports)


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

Branch: refs/heads/GROOVY_2_5_X
Commit: 781f15cc164bbf8c6bd2a41d99080fcc49a77041
Parents: eb3494e
Author: Paul King <pa...@asert.com.au>
Authored: Sat Nov 10 20:51:29 2018 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Sat Nov 10 20:51:29 2018 +1000

----------------------------------------------------------------------
 .../groovy-ant/src/test/groovy/groovy/ant/Groovy8872Test.groovy   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/781f15cc/subprojects/groovy-ant/src/test/groovy/groovy/ant/Groovy8872Test.groovy
----------------------------------------------------------------------
diff --git 
a/subprojects/groovy-ant/src/test/groovy/groovy/ant/Groovy8872Test.groovy 
b/subprojects/groovy-ant/src/test/groovy/groovy/ant/Groovy8872Test.groovy
index 7e5db65..bc7953f 100644
--- a/subprojects/groovy-ant/src/test/groovy/groovy/ant/Groovy8872Test.groovy
+++ b/subprojects/groovy-ant/src/test/groovy/groovy/ant/Groovy8872Test.groovy
@@ -28,6 +28,7 @@ class Groovy8872Test extends AntTestCase {
     '''
 
     void testParameterNamesSeenInAST() {
+        if (System.getProperty('java.specification.version') < '1.8') return
 //        def debugLogger = new org.apache.tools.ant.DefaultLogger()
 //        debugLogger.setMessageOutputLevel(4)
 //        debugLogger.setOutputPrintStream(System.out)
@@ -63,8 +64,6 @@ class Groovy8872Test extends AntTestCase {
                 ''')
                 'ExtractParamNamesTransformation.groovy'('''
                     import org.codehaus.groovy.ast.*
-                    import org.codehaus.groovy.ast.expr.*
-                    import org.codehaus.groovy.ast.stmt.*
                     import org.codehaus.groovy.transform.*
                     import org.codehaus.groovy.control.*
                     import static org.codehaus.groovy.ast.tools.GeneralUtils.*

Reply via email to