You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2023/12/23 01:49:00 UTC

[jira] [Commented] (LANG-1702) TypeUtils.unrollVariables can cause a StackException for parameterized inner class

    [ https://issues.apache.org/jira/browse/LANG-1702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17799981#comment-17799981 ] 

Elliotte Rusty Harold commented on LANG-1702:
---------------------------------------------

As best I can tell, this bug is no longer present at head. See test in https://github.com/apache/commons-lang/pull/1151 If there's something about that test that does not properly describe this issue, please comment on the PR,

> TypeUtils.unrollVariables can cause a StackException for parameterized inner class
> ----------------------------------------------------------------------------------
>
>                 Key: LANG-1702
>                 URL: https://issues.apache.org/jira/browse/LANG-1702
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.reflect.*
>    Affects Versions: 3.12.0
>            Reporter: Renny Barrett
>            Priority: Major
>         Attachments: TestTypeUtilsUnwrap.java
>
>
> If TypeUtils.unrollVariables is called for a type which is a non-static inner class where the inner class and its enclosing class both have type parameters, then there's an infinite recursion which results in a StackOverflow error.
>  
> Simple test code that recreates the issue is attached.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)