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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: tools
    • Labels:
      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

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

                Dates

                Created:
                Updated: