Repository: groovy
Updated Branches:
  refs/heads/master a905ba470 -> f07dbebe0


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

Branch: refs/heads/master
Commit: f07dbebe031d6873745f0466ea644c46ba2a37a4
Parents: a905ba4
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:53 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/f07dbebe/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