ClassLoader.getResources(String)

2018-02-07 Thread Stephen Colebourne
I've been trying to use ClassLoader.getResources(String). The entire application is in one named module, this includes the code that invokes the ClassLoader method and the resource that it is trying to find. The Javadoc says: "Resources in named modules are subject to the encapsulation rules speci

Re: ClassLoader.getResources(String)

2018-02-07 Thread Alan Bateman
On 07/02/2018 14:23, Stephen Colebourne wrote: I've been trying to use ClassLoader.getResources(String). The entire application is in one named module, this includes the code that invokes the ClassLoader method and the resource that it is trying to find. Can you summarize what you are trying to d

Re: ClassLoader.getResources(String)

2018-02-07 Thread Stephen Colebourne
On 7 February 2018 at 16:35, Alan Bateman wrote: > On 07/02/2018 14:23, Stephen Colebourne wrote: >> >> I've been trying to use ClassLoader.getResources(String). The entire >> application is in one named module, this includes the code that >> invokes the ClassLoader method and the resource that it

Re: ClassLoader.getResources(String)

2018-02-07 Thread Alan Bateman
On 07/02/2018 16:56, Stephen Colebourne wrote: : I was using maven to create a jar-with-dependencies file, so I could use jlink. With all the code in one jar file, there shouldn't be any access barriers to worry about. ClassLoader.getResources(String) worked just fine until Java 9. The two APIs