Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8259721

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • tbd
    • None
    • tools
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: