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/09/27 12:15:21 UTC

groovy git commit: fix jdk6 build - test referenced a jdk1.7 method

Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_4_X db9540624 -> 5ff3b1c2b


fix jdk6 build - test referenced a jdk1.7 method


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

Branch: refs/heads/GROOVY_2_4_X
Commit: 5ff3b1c2b630ac975fd1c18d706d32fe0a86e4bc
Parents: db95406
Author: paulk <pa...@asert.com.au>
Authored: Wed Sep 27 22:15:07 2017 +1000
Committer: paulk <pa...@asert.com.au>
Committed: Wed Sep 27 22:15:07 2017 +1000

----------------------------------------------------------------------
 src/test/groovy/transform/stc/STCAssignmentTest.groovy | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/5ff3b1c2/src/test/groovy/transform/stc/STCAssignmentTest.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/transform/stc/STCAssignmentTest.groovy b/src/test/groovy/transform/stc/STCAssignmentTest.groovy
index 645a6de..66fc52e 100644
--- a/src/test/groovy/transform/stc/STCAssignmentTest.groovy
+++ b/src/test/groovy/transform/stc/STCAssignmentTest.groovy
@@ -906,7 +906,7 @@ class STCAssignmentTest extends StaticTypeCheckingTestCase {
             class Foo {
                 CharSequence makeEnv( env, StringBuilder result = new StringBuilder() ) {
                     if (env instanceof File) {
-                        env = env.toPath()
+                        env = env.toURI()
                     }
                     if (env instanceof String && env.contains('=')) {
                         result << 'export ' << env << ';'