You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Renny Barrett (Jira)" <ji...@apache.org> on 2023/07/11 18:43:00 UTC

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

Renny Barrett created LANG-1702:
-----------------------------------

             Summary: 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
         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)