Compilation error while evaluating java stream expression in IntelliJ Idea 2020.1.4

644 Views Asked by At

I am using latest IntelliJ Idea ultimate version 2020.1.4 and trying to debug my unit tests. My unit test is run as gradle test. When I evaluate a java method which returns a List , I can see all the values in the list but the moment I try to access the stream() and use filter in the evaluation window I get compilation error.

Just evaluating list.stream() seems to work but adding filter has got some issues. enter image description here

This is when I use .stream() on my list. enter image description here And thats the error I get enter image description here

This used to work in the older version of idea.Any pointers what can be the reason ?

0

There are 0 best solutions below