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 2018/09/15 03:03:13 UTC
groovy git commit: GROOVY-7362: Can't compile Java class extending
Groovy abstract class with explicit GroovyObject interface (already fixed -
add test case)
Repository: groovy
Updated Branches:
refs/heads/master eb08b5e17 -> 3c11d4d24
GROOVY-7362: Can't compile Java class extending Groovy abstract class with explicit GroovyObject interface (already fixed - add test case)
Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/3c11d4d2
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/3c11d4d2
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/3c11d4d2
Branch: refs/heads/master
Commit: 3c11d4d2407260e18256b08eb1d39d33da8ffedc
Parents: eb08b5e
Author: Paul King <pa...@asert.com.au>
Authored: Sat Sep 15 13:03:04 2018 +1000
Committer: Paul King <pa...@asert.com.au>
Committed: Sat Sep 15 13:03:04 2018 +1000
----------------------------------------------------------------------
.../groovy/groovy/ant/Groovy7362Test.groovy | 48 ++++++++++++++++++++
1 file changed, 48 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/groovy/blob/3c11d4d2/subprojects/groovy-ant/src/test/groovy/groovy/ant/Groovy7362Test.groovy
----------------------------------------------------------------------
diff --git a/subprojects/groovy-ant/src/test/groovy/groovy/ant/Groovy7362Test.groovy b/subprojects/groovy-ant/src/test/groovy/groovy/ant/Groovy7362Test.groovy
new file mode 100644
index 0000000..6a3b33f
--- /dev/null
+++ b/subprojects/groovy-ant/src/test/groovy/groovy/ant/Groovy7362Test.groovy
@@ -0,0 +1,48 @@
+/*
+ * 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.ant
+
+class Groovy7362Test extends AntTestCase {
+ void testCompileJavaClassExtendingAbstractGroovyClass() {
+// def debugLogger = new org.apache.tools.ant.DefaultLogger()
+// debugLogger.setMessageOutputLevel(4)
+// debugLogger.setOutputPrintStream(System.out)
+// debugLogger.setErrorPrintStream(System.err)
+
+ doInTmpDir { ant, baseDir ->
+ baseDir.src {
+ 'ConcreteClass.groovy'('''
+ class ConcreteClass { }
+ ''')
+ 'AbstractClass.groovy'('''
+ abstract class AbstractClass extends ConcreteClass implements GroovyObject { }
+ ''')
+ 'JavaClass.java'('''
+ public class JavaClass extends AbstractClass { }
+ ''')
+ }
+// ant.project.addBuildListener(debugLogger)
+ ant.mkdir(dir: 'build')
+ def cp = System.getProperty('java.class.path') + ':build'
+ ant.taskdef(name: 'groovyc', classname: 'org.codehaus.groovy.ant.Groovyc')
+ ant.groovyc(srcdir: 'src', destdir: 'build')
+ ant.javac(classpath: cp, destdir: 'build', srcdir: 'src', includeantruntime: 'false', fork: 'true')
+ }
+ }
+}