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

Javac crashes when diagnostic mentions anonymous inner class' type variables

    Details

    • Subcomponent:
    • Resolved In Build:
      b84
    • Verification:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: