Nicolai Parlog
2018-02-11 15:31:21 UTC
Hi!
modules can only load bundles from themselves. But in my experiments I
could also load resource bundles from other modules as long as the
package containing them was open.
Did I make a mistake? Did I misinterpret the Javadoc? Is that behavior
buggy?
so long ... Nicolai
[1] https://docs.oracle.com/javase/9/docs/api/java/util/ResourceBundle.html
--
PGP Key:
http://keys.gnupg.net/pks/lookup?op=vindex&search=0xCA3BAD2E9CCCD509
Web:
http://codefx.org
a blog about software development
https://www.sitepoint.com/java
high-quality Java/JVM content
http://do-foss.de
Free and Open Source Software for the City of Dortmund
Twitter:
https://twitter.com/nipafx
* Code in a named module that calls getBundle(String, Locale)
will locate resource bundles in the caller's module (caller module).
* If resource bundles are deployed in named modules separate from the
caller module, those resource bundles need to be loaded from service
providers of ResourceBundleProvider.
I interpreted this to mean that, without registering services, namedwill locate resource bundles in the caller's module (caller module).
* If resource bundles are deployed in named modules separate from the
caller module, those resource bundles need to be loaded from service
providers of ResourceBundleProvider.
modules can only load bundles from themselves. But in my experiments I
could also load resource bundles from other modules as long as the
package containing them was open.
Did I make a mistake? Did I misinterpret the Javadoc? Is that behavior
buggy?
so long ... Nicolai
[1] https://docs.oracle.com/javase/9/docs/api/java/util/ResourceBundle.html
--
PGP Key:
http://keys.gnupg.net/pks/lookup?op=vindex&search=0xCA3BAD2E9CCCD509
Web:
http://codefx.org
a blog about software development
https://www.sitepoint.com/java
high-quality Java/JVM content
http://do-foss.de
Free and Open Source Software for the City of Dortmund
Twitter:
https://twitter.com/nipafx