You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2026/06/29 00:18:00 UTC
[jira] [Created] (GROOVY-12115) Reify a receiver's type argument as a Class parameter under @CompileStatic (@ClassTag)
Paul King created GROOVY-12115:
----------------------------------
Summary: Reify a receiver's type argument as a Class parameter under @CompileStatic (@ClassTag)
Key: GROOVY-12115
URL: https://issues.apache.org/jira/browse/GROOVY-12115
Project: Groovy
Issue Type: Bug
Components: groovy-jdk
Reporter: Eric Milles
{code}
Map<Number,?> map = [:].withDefault{ null }
assert map.get('x') == null
Number k = map.keySet()[0]
{code}
GroovyCastException: Cannot cast object 'x' with class 'java.lang.String' to class 'java.lang.Number'
--
This message was sent by Atlassian Jira
(v8.20.10#820010)