Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17467

Type annotations and generic types causing ArrayIndexOutOfBoundsException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 5.1.2
    • Fix Version/s: 5.1.3
    • Component/s: Core
    • Labels:
    • Last commented by a User:
      true

      Description

      We just tried upgrading our project to from Spring Framework 5.0.8 to 5.1.2 but unfortunately we hit a blocker which seems to be some kind of regression. At least my Google search yielded a two year old ASM bug report which also have been fixed shortly after .

      We are getting an ArrayIndexOutOfBoundException when initialising the ApplicationContext or when calling certain methods that make use of type annotations in the method body. Additionally, it seem to be necessary that the affected class inherits from a generic type.

      I've attached a small test project that should help reproducing the bug. If you execute the test you should see the error. Downgrading the dependency to Spring Framework 5.0.8 solves the issue.

      Our test systems use MacOs und CentOs with JDK 1.8.0_181.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              aprantl1 aprantl
              Last updater:
              Spring Issues Spring Issues
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 23 weeks, 6 days ago