method Resolve.ReferenceLookupResult::isSuccess can return true even for unsuccessful searches

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: tools
    • None

      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

            Assignee:
            Vicente Arturo Romero Zaldivar
            Reporter:
            Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: