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

Javac crashes when diagnostic mentions anonymous inner class' type variables

    XMLWordPrintable

Details

    • b84
    • Verified

    Description

      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);
      }

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: