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

Javac crashes in finder mode with nested implicit lambdas

XMLWordPrintable

    • b44
    • Verified

        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

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

                Created:
                Updated:
                Resolved: