ArrayOutOfBoundsException on Bean creation while using Java 8 constructs

元气小坏坏 提交于 2019-12-02 17:07:20

Which version of Spring do you use? You need upgrade to Spring 4 to use Java 8 lambda expressions.

I found a bug recently when using Spring 3.0.5, which appears to be fixed in 4.0.5. Here are the details.

If you have a class that has a parameterized constructor and also has a method that uses a lambda expression (introduced in Java 8), then a ArrayIndexOutOfException occurs when creating a bean for that class.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!