groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pa...@apache.org
Subject groovy git commit: move for JDK7 build
Date Sun, 19 Aug 2018 13:58:26 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_5_X 5fbdb6c04 -> f5765c299


move for JDK7 build


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

Branch: refs/heads/GROOVY_2_5_X
Commit: f5765c2990df4a19eb7d1ee2f8dd06c8a5ff55ad
Parents: 5fbdb6c
Author: Paul King <paulk@asert.com.au>
Authored: Sun Aug 19 23:58:15 2018 +1000
Committer: Paul King <paulk@asert.com.au>
Committed: Sun Aug 19 23:58:15 2018 +1000

----------------------------------------------------------------------
 src/test/groovy/bugs/Groovy8409Bug.groovy     | 69 ----------------------
 src/test/groovy/bugs/vm8/Groovy8409Bug.groovy | 69 ++++++++++++++++++++++
 2 files changed, 69 insertions(+), 69 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/f5765c29/src/test/groovy/bugs/Groovy8409Bug.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/bugs/Groovy8409Bug.groovy b/src/test/groovy/bugs/Groovy8409Bug.groovy
deleted file mode 100644
index c4de8b7..0000000
--- a/src/test/groovy/bugs/Groovy8409Bug.groovy
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
- */
-package groovy.bugs
-
-import gls.CompilableTestSupport
-import groovy.transform.NotYetImplemented
-
-class Groovy8409Bug extends CompilableTestSupport {
-    @NotYetImplemented
-    void test() {
-        assertScript '''
-        import groovy.transform.CompileStatic
-        import java.util.function.BiFunction
-
-        @CompileStatic
-        class Groovy8409Bug {
-        
-            static <T> T actionWrapperT(BiFunction<Date, URL, T> action) {
-                T result = action.apply(new Date(), new URL('http://www.example.com'))
-                // do something else here
-                return result
-            }
-        
-            static void main(String[] args) {
-                Groovy8409Bug t = actionWrapperT { Date date, URL url -> new Groovy8409Bug()
}
-            }
-        
-        }
-        '''
-    }
-
-    void testWorkaround() {
-        assertScript '''
-        import groovy.transform.CompileStatic
-        import java.util.function.BiFunction
-
-        @CompileStatic
-        class Groovy8409Bug {
-        
-            static <X> X actionWrapperT(BiFunction<Date, URL, X> action) {
-                X result = action.apply(new Date(), new URL('http://www.example.com'))
-                // do something else here
-                return result
-            }
-        
-            static void main(String[] args) {
-                Groovy8409Bug t = actionWrapperT { Date date, URL url -> new Groovy8409Bug()
}
-            }
-        
-        }
-        '''
-    }
-}

http://git-wip-us.apache.org/repos/asf/groovy/blob/f5765c29/src/test/groovy/bugs/vm8/Groovy8409Bug.groovy
----------------------------------------------------------------------
diff --git a/src/test/groovy/bugs/vm8/Groovy8409Bug.groovy b/src/test/groovy/bugs/vm8/Groovy8409Bug.groovy
new file mode 100644
index 0000000..0f5ecf4
--- /dev/null
+++ b/src/test/groovy/bugs/vm8/Groovy8409Bug.groovy
@@ -0,0 +1,69 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package groovy.bugs.vm8
+
+import gls.CompilableTestSupport
+import groovy.transform.NotYetImplemented
+
+class Groovy8409Bug extends CompilableTestSupport {
+    @NotYetImplemented
+    void test() {
+        assertScript '''
+        import groovy.transform.CompileStatic
+        import java.util.function.BiFunction
+
+        @CompileStatic
+        class Groovy8409Bug {
+        
+            static <T> T actionWrapperT(BiFunction<Date, URL, T> action) {
+                T result = action.apply(new Date(), new URL('http://www.example.com'))
+                // do something else here
+                return result
+            }
+        
+            static void main(String[] args) {
+                Groovy8409Bug t = actionWrapperT { Date date, URL url -> new Groovy8409Bug()
}
+            }
+        
+        }
+        '''
+    }
+
+    void testWorkaround() {
+        assertScript '''
+        import groovy.transform.CompileStatic
+        import java.util.function.BiFunction
+
+        @CompileStatic
+        class Groovy8409Bug {
+        
+            static <X> X actionWrapperT(BiFunction<Date, URL, X> action) {
+                X result = action.apply(new Date(), new URL('http://www.example.com'))
+                // do something else here
+                return result
+            }
+        
+            static void main(String[] args) {
+                Groovy8409Bug t = actionWrapperT { Date date, URL url -> new Groovy8409Bug()
}
+            }
+        
+        }
+        '''
+    }
+}


Mime
View raw message