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

Javac crashes when diagnostic mentions anonymous inner class' type variables

XMLWordPrintable

    • b84
    • Verified

      The following code crashes javac:

      interface F<X> { }

      abstract class AbstractPipeline<X> {

          public <P> void pipeline() {
                  stream(new F<P>() { });
          }


          protected abstract <T> AbstractPipeline<?> stream(F<? extends X> supplier);
      }

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

              Created:
              Updated:
              Resolved: