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

Javac crashes in finder mode with nested implicit lambdas

    Details

    • Subcomponent:
    • Resolved In Build:
      b44
    • Verification:
      Verified

      Backports

        Description

        The following code:

        import java.util.stream.*;

        class Test {
         private void constructFlavoredObject(Stream<List<?>> sl) {
        Runnable r = new Runnable() {
        public void run() {
                     Stream<List<?>> constructor = sl.filter(c -> true);
                    }
                };
            }

        }

        Causes a javac crash if javac is ran using the option -XDfind=lambda

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mcimadamore Maurizio Cimadamore
                  Reporter:
                  mcimadamore Maurizio Cimadamore
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: