ClassLoader.getResources(String)
    Alan Bateman 
    Alan.Bateman at oracle.com
       
    Wed Feb  7 16:35:14 UTC 2018
    
    
  
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 do? If this is code in a module 
trying to locate one of its own resources then Class.getResourceXXX or 
Module.getResourcAsStream are the candidate APIs to use (not 
ClassLoader.getResourceXXX as that can never locate resources that are 
encapsulated).
-Alan
    
    
More information about the jigsaw-dev
mailing list