IDEA shows lambda compile error but compiles in the lastest version IntelliJ IDEA 2019.1.3 (Ultimate Edition)

Answered

I searched this topic but I found that was marked as "Answered":

https://intellij-support.jetbrains.com/hc/en-us/community/posts/207339195-IDEA-shows-lambda-compile-error-but-compiles-?page=1#community_comment_360000644860

But this bug still exists in the lastest verion of IntelliJ IDEA 2019.1.3 (Ultimate Edition), windows 10.

import org.apache.spark.api.java.JavaRDD;
import org.apache.spark.sql.Row;
import org.apache.spark.sql.RowFactory;

public class Test {
public static void main(String[] args) {
JavaRDD<String> rdd = null;
JavaRDD<Row> otherRDD = rdd.map(rid -> RowFactory.create(rid));
}
}


Since no compile error occured, but this bug is very annoying. It always tell us there are errors but do not really, this make our developer blind when there is any true error.

1
2 comments
Avatar
Permanently deleted user

had this problem, too. Solution: disable Scalaplugin

0

Please sign in to leave a comment.