RFR: JDK-8161230 ClassLoader: add resource methods returning java.util.stream.Stream

Mandy Chung mandy.chung at oracle.com
Thu Sep 8 15:52:41 UTC 2016

> On Sep 8, 2016, at 12:16 AM, Andrej Golovnin <andrej.golovnin at gmail.com> wrote:
> Hi all,
> Maybe I'm wrong but I think the JavaDocs for the new method need more
> love. The JavaDocs mention at multiple places that resources are
> loaded, e.g.:
> 1362      * Returns a stream that loads the resources with the given name.
> 1375      * <p> The loading of resources will occur when the returned stream is
> 1376      * evaluated. If the loading of resources results in an
> {@code IOException}

I have filed an issue to clean up the terminology:

This was also brought up in a different thread.  Alan suggests “locating”.

What about:
  The resources will be located when the returned stream is evaluated. If it results in an {@code IOException}


More information about the core-libs-dev mailing list