Java – eclipse autocomplete does not apply to lambda and types
•
Java
I use eclipse oxygen 2 Release(4.7.2)
I tried some lambda expressions and encountered the following problems:
I write lambda parameters without type, and eclipse autocomplete works normally:
If I write a lambda parameter with a type, it will not be done automatically:
But I can write this myself and everything is normal:
Is this an error in eclipse? Can anyone explain this behavior?
Solution
Yes, this is a known error in eclipse that has not been fixed: Eclipse bug 460921
Eclipse is open source. Welcome to fix this bug
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码