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

bare wildcard return type with extends type bound produces syntax error

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      invalid method declaration; return type required

      A DESCRIPTION OF THE PROBLEM :
      error-producing example: <? extends MyClass>

      Note that this compiled and ran in Java 8!

      However, List<? extends MyClass> still works.


        Attachments

          Activity

            People

            • Assignee:
              psonal Pallavi Sonal
              Reporter:
              webbuggrp Webbug Group
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: