Changed behaviour of ResourceBundle#getBundle()

Gunnar Morling gunnar at hibernate.org
Mon Dec 12 19:51:39 UTC 2016


Ah, that's interesting. Bean Validation looks for a bundle named
"ValidationMessages" by default which is how I noticed this. Thanks for the
clarification.

2016-12-12 17:57 GMT+01:00 Alan Bateman <Alan.Bateman at oracle.com>:

> On 12/12/2016 15:29, Gunnar Morling wrote:
>
> :
>
> It seems to be related to the fact that the bundle is located in the
> default package, because the expected exception is raised if the bundle is
> located in a proper package.
>
> Right, resources in the unnamed package or with names that don't map to
> packages in the module are not encapsulated. So what you are seeing is
> correct.
>
> -Alan
>


More information about the jigsaw-dev mailing list