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 2025/06/11 19:16:30 UTC
(groovy) branch master updated: STC: `extractType` discards placeholder unlike `getCombinedBoundType`
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 9c3ed19351 STC: `extractType` discards placeholder unlike `getCombinedBoundType`
9c3ed19351 is described below
commit 9c3ed193515d1a69530da767d1358a209d51d6d7
Author: Eric Milles <er...@thomsonreuters.com>
AuthorDate: Wed Jun 11 13:56:14 2025 -0500
STC: `extractType` discards placeholder unlike `getCombinedBoundType`
---
.../org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java b/src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java
index d39fed0d47..80d73568c0 100644
--- a/src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java
+++ b/src/main/java/org/codehaus/groovy/transform/stc/StaticTypeCheckingSupport.java
@@ -1778,7 +1778,7 @@ public abstract class StaticTypeCheckingSupport {
extractGenericsConnections(spec, type, type.redirect());
} else if (type.redirect().getGenericsTypes() != null) {
for (GenericsType tp : type.redirect().getGenericsTypes()) {
- spec.put(new GenericsTypeName(tp.getName()), new GenericsType(getCombinedBoundType(tp))); //GROOVY-10651
+ spec.put(new GenericsTypeName(tp.getName()), new GenericsType(extractType(tp))); //GROOVY-10651
}
}
superClass = applyGenericsContext(spec, superClass);