I could not find any mention of this in the JLS, it only talks about how compilation units are placed in the unnamed module when they are in the unnamed package.
Background: Many libraries require user code to put a configuration file with a specific name in the unnamed (default) package. I want to know if the JLS guarantees that these resources can be found via ClassLoader::getSystemResourceAsStream
when using modules. It seems to work, but I'd like to have a source.
It would make sense, because there is no syntax for opens ""
, so the only way to be explicit would be to open the module itself.