In module com.thing.withprops I have this code in com.thing.withprops.UseProps.java:
URL url =UseProps.class.getResource("config/values.properties") ;
module-info is
module com.thing.withprops { exports com.thing.withprops;}
now there is another module with name com.thing.withprops.config where lies a values.properties file in directory com/thing/withprops/config/ the module-info is just this:
module com.thing.withprops.config{}
well when everything is jarred and executed all is working perfectly: the resource is found! I am confused because it seems that the doc says it shouldn't be found since it is in another module which is not exported or opened. So what is wrong? the way I understand doc (I am not a native speaker) or my code?
thanks for any hint