Invalid lambda deserialization

断了今生、忘了曾经 提交于 2019-12-02 01:19:14

It's caused by this bug with the JDT compiler's handling of anonymous inner classes inside lamda expressions:

"The problem here is that during generation of the deserialize lambda helper method the 'name' of the inner class containing the implementation lambda method is seen as $Local$ when we ought to be using TestClass$1."

It's not been backported to Version: Luna SR2 (4.4.2) build M20141210-0900 but is verified for for 4.5 M4 I20141208-0800. I can personally confirm that this bug is fixed in:

Eclipse SDK
Version: Mars (4.5)
Build id: I20141210-2000

Update: Fixed in Luna SR2 (4.4.2)

Looks like this Eclipse JDT bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=439889

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