You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by em...@apache.org on 2021/05/17 15:31:10 UTC
[groovy] branch master updated: GROOVY-4365: add test case
This is an automated email from the ASF dual-hosted git repository.
emilles pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new e33e284 GROOVY-4365: add test case
e33e284 is described below
commit e33e2849e247608c5e1826b76098d3a68d16bebf
Author: Eric Milles <er...@thomsonreuters.com>
AuthorDate: Mon May 17 10:30:57 2021 -0500
GROOVY-4365: add test case
---
src/test/groovy/bugs/Groovy4365.groovy | 36 ++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/src/test/groovy/bugs/Groovy4365.groovy b/src/test/groovy/bugs/Groovy4365.groovy
new file mode 100644
index 0000000..bc52176
--- /dev/null
+++ b/src/test/groovy/bugs/Groovy4365.groovy
@@ -0,0 +1,36 @@
+/*
+ * 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 org.junit.Test
+
+import static groovy.test.GroovyAssert.shouldFail
+
+final class Groovy4365 {
+ @Test
+ void testClassResolve() {
+ def err = shouldFail '''
+ class MyHashMap extends HashMap {
+ static class MyEntry extends HashMap.Entry {
+ }
+ }
+ '''
+ assert err =~ /unable to resolve class HashMap.Entry/
+ }
+}