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

Improve documentation for Types.directSupertypes()

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • 20
    • core-libs
    • None

    Description

      Types.directSupertypes() could specify that when called for a type mirror corresponding to java.lang.Object, it returns an empty list.

      Sure, this can be deduced from reading relevant JLS bits, other elements of the API (e.g. TypeElement.getSuperclass()) or experimenting. But it might be helpful if said explicitly.

      Attachments

        Issue Links

          Activity

            People

              darcy Joe Darcy
              prappo Pavel Rappo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: