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/06/07 20:20:51 UTC
[groovy] branch master updated: undo edit
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 09979f9 undo edit
09979f9 is described below
commit 09979f9ad63cde8c6b237be759064f4e8375698e
Author: Eric Milles <er...@thomsonreuters.com>
AuthorDate: Mon Jun 7 14:51:24 2021 -0500
undo edit
---
src/main/java/org/codehaus/groovy/control/ResolveVisitor.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/control/ResolveVisitor.java b/src/main/java/org/codehaus/groovy/control/ResolveVisitor.java
index 1f42535..24ac563 100644
--- a/src/main/java/org/codehaus/groovy/control/ResolveVisitor.java
+++ b/src/main/java/org/codehaus/groovy/control/ResolveVisitor.java
@@ -1505,7 +1505,7 @@ public class ResolveVisitor extends ClassCodeExpressionTransformer {
private void checkCyclicInheritance(final ClassNode node, final ClassNode type) {
if (type.redirect() == node || type.getOuterClasses().contains(node)) {
- addError("Cycle detected: the type " + node.getUnresolvedName() + " cannot extend/implement itself or one of its own member types", type);
+ addError("Cycle detected: the type " + node.getName() + " cannot extend/implement itself or one of its own member types", type);
} else if (type != ClassHelper.OBJECT_TYPE) {
Set<ClassNode> done = new HashSet<>();
done.add(ClassHelper.OBJECT_TYPE);