Details
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.