Skip to content

Type annotations and generic types causing ArrayIndexOutOfBoundsException [SPR-17467] #21999

@spring-projects-issues

Description

@spring-projects-issues

aprantl opened SPR-17467 and commented

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.


Affects: 5.1.2

Attachments:

Issue Links:

Referenced from: commits 2ac4355

1 votes, 3 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: regressionA bug that is also a regression

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions