Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1702

TypeUtils.unrollVariables can cause a StackException for parameterized inner class

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.12.0
    • 3.15.0
    • lang.reflect.*
    • None

    Description

      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.

      Attachments

        1. TestTypeUtilsUnwrap.java
          1.0 kB
          Renny Barrett

        Issue Links

          Activity

            People

              Unassigned Unassigned
              renny Renny Barrett
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: