Repository: groovy Updated Branches: refs/heads/master 85ff6d9a4 -> bd6ff0daf
GROOVY-7826: fix test name Project: http://git-wip-us.apache.org/repos/asf/groovy/repo Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/bd6ff0da Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/bd6ff0da Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/bd6ff0da Branch: refs/heads/master Commit: bd6ff0dafda6155890284eb9d78be4bd1f78f30b Parents: 85ff6d9 Author: paulk <pa...@asert.com.au> Authored: Fri May 27 20:28:37 2016 +1000 Committer: paulk <pa...@asert.com.au> Committed: Fri May 27 20:28:37 2016 +1000 ---------------------------------------------------------------------- .../org/codehaus/groovy/ast/Groovy7826Bug.java | 41 ++++++++++++++++++++ .../org/codehaus/groovy/ast/Groovy7862Bug.java | 41 -------------------- 2 files changed, 41 insertions(+), 41 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/groovy/blob/bd6ff0da/src/test/org/codehaus/groovy/ast/Groovy7826Bug.java ---------------------------------------------------------------------- diff --git a/src/test/org/codehaus/groovy/ast/Groovy7826Bug.java b/src/test/org/codehaus/groovy/ast/Groovy7826Bug.java new file mode 100644 index 0000000..c128cee --- /dev/null +++ b/src/test/org/codehaus/groovy/ast/Groovy7826Bug.java @@ -0,0 +1,41 @@ +/* + * 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 org.codehaus.groovy.ast; + +import groovy.lang.GroovyShell; +import groovy.util.GroovyTestCase; +import org.codehaus.groovy.control.CompilerConfiguration; + +public class Groovy7826Bug extends GroovyTestCase { + public void testComplexTypeArguments() throws Exception { + String script = "def f(org.codehaus.groovy.ast.Groovy7826Bug.C1 c1) { }"; + + CompilerConfiguration config = new CompilerConfiguration(); + config.getOptimizationOptions().put("asmResolving", false); + + GroovyShell shell = new GroovyShell(config); + shell.evaluate(script, "bug7862.groovy"); + } + + public static class C1<T2 extends C2<T2, T1>, T1 extends C1<T2, T1>> { + } + + public static class C2<T2 extends C2<T2, T1>, T1 extends C1<T2, T1>> { + } +} http://git-wip-us.apache.org/repos/asf/groovy/blob/bd6ff0da/src/test/org/codehaus/groovy/ast/Groovy7862Bug.java ---------------------------------------------------------------------- diff --git a/src/test/org/codehaus/groovy/ast/Groovy7862Bug.java b/src/test/org/codehaus/groovy/ast/Groovy7862Bug.java deleted file mode 100644 index 4d7c1c7..0000000 --- a/src/test/org/codehaus/groovy/ast/Groovy7862Bug.java +++ /dev/null @@ -1,41 +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 org.codehaus.groovy.ast; - -import groovy.lang.GroovyShell; -import groovy.util.GroovyTestCase; -import org.codehaus.groovy.control.CompilerConfiguration; - -public class Groovy7862Bug extends GroovyTestCase { - public void testComplexTypeArguments() throws Exception { - String script = "def f(org.codehaus.groovy.ast.Groovy7862Bug.C1 c1) { }"; - - CompilerConfiguration config = new CompilerConfiguration(); - config.getOptimizationOptions().put("asmResolving", false); - - GroovyShell shell = new GroovyShell(config); - shell.evaluate(script, "bug7862.groovy"); - } - - public static class C1<T2 extends C2<T2, T1>, T1 extends C1<T2, T1>> { - } - - public static class C2<T2 extends C2<T2, T1>, T1 extends C1<T2, T1>> { - } -}