While fixing JDK-8231461 it was found that method Resolve.ReferenceLookupResult::isSuccess can return true even if the current search has produced an error symbol. This can be reproduced with this test case:
import java.util.stream.*;
class Test {
void foo(String... args) {
Stream<String> st = Stream.of(args).flatMap(Stream::of);
}
}
it is not clear why this is the case and further research in this area will be necessary
import java.util.stream.*;
class Test {
void foo(String... args) {
Stream<String> st = Stream.of(args).flatMap(Stream::of);
}
}
it is not clear why this is the case and further research in this area will be necessary
- relates to
-
JDK-8231461 static/instance overload leads to 'unexpected static method found in unbound lookup' when resolving method reference
- Resolved