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

Improve API documentation of ClassLoader and ServiceLoader with respect to enumeration of resources.

    XMLWordPrintable

Details

    • b113

    Description

      ClassLoader API documentation of getResource() should recommend that getResource() and getResources() are kept consistent - something like:

      << A subclass of ClassLoader that overrides getResource() to
      implement an alternate search algorithm for locating resources
      should also override getResources() to reflect that same
      order >>

      ServiceLoader documentation could be improved with an @implNote stating that the resources are returned in the order defined by ClassLoader,getResources().

      Attachments

        Activity

          People

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: