IllegalAccessException trying to load a ResourceBundle in 9u181

Alan Bateman Alan.Bateman at oracle.com
Tue Feb 13 13:57:08 UTC 2018



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).

-Alan


More information about the core-libs-dev mailing list