arnab30dutta commented on PR #16851: URL: https://github.com/apache/kafka/pull/16851#issuecomment-2282700464
Only Eclipse compiler shows this compiler error. Eclipse has a problem with correctly inferring generic types and Eclipse compiler is not able to infer the type String for the collect() method's arguments. So it simply infers Object. See a simulated snippet below  IntelliJ 13 is OK with this code. IntelliJ 12 also breaks on it as 12 supports lambda expression poorly. IntelliJ 13 is OK with this code. Compiling this code on command line with "javac" works just fine -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org