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.
This seems to be #18661 coming back indeed since we upgraded to ASM 7.0 for Spring Framework 5.1, with a heavily refactored ClassReader where we did not re-apply that old patch of ours. Since ASM refused to fix this itself (which I unfortunately haven't noticed), I've reintroduced a defensive patch to our ASM 7.0 fork for the Spring Framework 5.1.3 release.
This will be available in the upcoming 5.1.3.BUILD-SNAPSHOT. Feel free to give it an early try...