On 12/12/2016 13:38, Gunnar Morling wrote:
Hi,
I'm about to update my blog post on Bean Validation and Jigsaw from a while
ago [1] to the latest JDK 9 build.
There is one behavioural change that made me curious:
ResourceBundle#getBundle() called from within named module "A" now (as of
b148) returns a bundle based on a properties file located in another named
module "B". "A" does not require "B" in it's module-info.java, nor does "B"
export any packages at all. This was not the case when I originally tried
it (b122).
The latest JDK 9 does have the updated proposal for
#ResourceEncapsulation and ResourceBundle has been updated to align with
that proposal.
You mention Bean Validation. Does this mean the properties file is in
META-INF? If so then it will not be encapsulated because "META-INF" is
not a legacl package name.
-Alan