[
https://issues.apache.org/jira/browse/LANG-1698?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gary D. Gregory resolved LANG-1698.
-----------------------------------
Fix Version/s: 3.18.0
Resolution: Fixed
Hello [~sparkaar]
Fixed in git master and snapshot builds on
https://repository.apache.org/content/repositories/snapshots/
FTR old stack trace:
{noformat}
java.lang.StackOverflowError
at
org.apache.commons.lang3.reflect.TypeUtils.typeVariableToString(TypeUtils.java:1785)
at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1737)
at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1714)
at
org.apache.commons.lang3.reflect.TypeUtils.appendAllTo(TypeUtils.java:302)
at
org.apache.commons.lang3.reflect.TypeUtils.wildcardTypeToString(TypeUtils.java:1902)
at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1734)
at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1714)
at
org.apache.commons.lang3.reflect.TypeUtils.appendAllTo(TypeUtils.java:302)
at
org.apache.commons.lang3.reflect.TypeUtils.parameterizedTypeToString(TypeUtils.java:1604)
at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1731)
at org.apache.commons.lang3.reflect.TypeUtils.toString(TypeUtils.java:1714)
at
org.apache.commons.lang3.reflect.TypeUtils.appendAllTo(TypeUtils.java:302)
at
org.apache.commons.lang3.reflect.TypeUtils.typeVariableToString(TypeUtils.java:1789)
{noformat}
> Parameterized Types with Wildcards lead to StackOverflows on toString
> ---------------------------------------------------------------------
>
> Key: LANG-1698
> URL: https://issues.apache.org/jira/browse/LANG-1698
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.reflect.*
> Affects Versions: 3.11, 3.12.0
> Reporter: Jan Arne Sparka
> Assignee: Gary D. Gregory
> Priority: Major
> Fix For: 3.18.0
>
> Attachments: TestClass2.java
>
>
> ParameterizedTypes from TypeUtils.parameterize(Class<?> rawClass, Type...
> typeArguments) which contain Wildcards as typeArguments can lead to infinite
> loops.
> MVE attached.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)