You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2023/07/11 20:31: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=17742168#comment-17742168 ]
Gary D. Gregory commented on LANG-1702:
---------------------------------------
[~renny]
Isn't this the same as LANG-1524?
> 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)