IllegalAccessException trying to load a ResourceBundle in 9u181
vitalyd at gmail.com
Tue Feb 13 14:05:35 UTC 2018
On Tue, Feb 13, 2018 at 8:57 AM, Alan Bateman <Alan.Bateman at oracle.com>
> On 13/02/2018 13:03, Vitaly Davidovich wrote:
>> So I tried calling getBundle(..., Object.class.getModule()), and that
>> worked - great. Interestingly, I didn't have to add-opens (or add-export
>> for that matter). Is that expected?
>> It works because the sun.security.util.AuthResources resource bundle for
> the default locale is in java.base. You'll get MissingResourceException
> once java.base is fully encapsulated (testing with --illegal-access=deny to
> try it).
Right, thanks Alan. While we're on the subject, when do you expect
java.base to be fully encapsulated?
More information about the core-libs-dev