Re: RFR: 8161203: ResourceBundle.getBundle performance regression

2016-08-04 Thread Peter Levart
Hi Masayoshi, Just a thought. What if RB.clearCache(classLoader) was specified as equivalent to RB.clearCache(classLoader.getUnnamedModule()) ? I think that would be backwards compatible... Regards, Peter On 08/02/2016 05:30 PM, Masayoshi Okutsu wrote: Hi Peter, Thanks for bringing up the

Re: ResourceBundleProvider(s) design

2016-08-04 Thread Peter Levart
On 08/04/2016 11:21 AM, Peter Levart wrote: If the providing module declares the service type, then the consuming module will have an explicit dependency on the providing module, which also defeats the purpose of service provider's implicit coupling. I take this back. The service type is reso

ResourceBundleProvider(s) design

2016-08-04 Thread Peter Levart
Hi, I would like to ask about why java.util.spi.ResourceBundleProvider is designed they way it is. I'm questioning the design of the following part of specification: "The provider service type is determined by {@code basename+"Provider"}." Why is that necessary? It requires that provid