DfaValueFactory: evaluate comparison with sentinel in createCondition()

This allows to evaluate conditions like "<unknown> = SENTINEL" to "false", rather than "<unknown>" like it was before.
Fixes EA-136821 - ESE: Stack.peek
This commit is contained in:
Tagir Valeev
2019-03-22 13:07:59 +07:00
parent 8598857745
commit 8f661ca04b
2 changed files with 11 additions and 0 deletions
@@ -294,4 +294,11 @@ public class StreamInlining {
long count10 = list.stream().map(String::trim).count();
if (<warning descr="Condition 'count10 == 0' is always 'false'">count10 == 0</warning>) {}
}
void testFlatMapUnresolvedSymbol() {
Stream.of("foo", "bar").flatMap(x -> Stream.of(
<error descr="Cannot resolve symbol 'aa'">aa</error>,
<error descr="Cannot resolve symbol 'bb'">bb</error>,
<error descr="Cannot resolve symbol 'cc'">cc</error>));
}
}