Re: (10) RFR of JDK-8184165: sun.security.provider.PolicyFile$PolicyEntry.toString() throws MissingResourceException

2017-07-12 Thread Hamlin Li
I'm afraid it's not worth to build such a automatic tool. Different resource clients uses different resource classes which have different resource items, so such a tool must understand which resource client is using which resource class, which is not easy or even possible. Or we can hard code

Re: (10) RFR of JDK-8184165: sun.security.provider.PolicyFile$PolicyEntry.toString() throws MissingResourceException

2017-07-12 Thread Weijun Wang
Great work! Thanks for going deep on this issue. Is it possible to change your manual check into an automatic test? I know sources might not be available when running a test, but if something like ${test.src}/../../../src/java.base/share/classes/sun/security/util/ exists it can be a good hint t

Re: (10) RFR of JDK-8184165: sun.security.provider.PolicyFile$PolicyEntry.toString() throws MissingResourceException

2017-07-11 Thread Hamlin Li
I manually checked *Resources.java under sun/security and usage of them, my investigation shows that overall quality of "static" resource usage is good (by "static" I mean it uses hard code resource string like rb.getString("") rather than rb.getString(aStringVariable) ), except of this iss

Re: (10) RFR of JDK-8184165: sun.security.provider.PolicyFile$PolicyEntry.toString() throws MissingResourceException

2017-07-11 Thread Hamlin Li
On 2017/7/12 11:06, Weijun Wang wrote: On Jul 12, 2017, at 11:03 AM, Hamlin Li wrote: Hi Max, On 2017/7/12 10:50, Weijun Wang wrote: Change looks fine. Please remember to add a noreg-trivial label. Added the label, and will push the change. Also, can you do some more investigation when t

Re: (10) RFR of JDK-8184165: sun.security.provider.PolicyFile$PolicyEntry.toString() throws MissingResourceException

2017-07-11 Thread Weijun Wang
> On Jul 12, 2017, at 11:03 AM, Hamlin Li wrote: > > Hi Max, > > On 2017/7/12 10:50, Weijun Wang wrote: >> Change looks fine. >> >> Please remember to add a noreg-trivial label. > Added the label, and will push the change. >> Also, can you do some more investigation when this starts to happen?

Re: (10) RFR of JDK-8184165: sun.security.provider.PolicyFile$PolicyEntry.toString() throws MissingResourceException

2017-07-11 Thread Hamlin Li
Hi Max, On 2017/7/12 10:50, Weijun Wang wrote: Change looks fine. Please remember to add a noreg-trivial label. Added the label, and will push the change. Also, can you do some more investigation when this starts to happen? The bug says affected versions are 9 and 10 but PolicyFile.java has

Re: (10) RFR of JDK-8184165: sun.security.provider.PolicyFile$PolicyEntry.toString() throws MissingResourceException

2017-07-11 Thread Weijun Wang
Change looks fine. Please remember to add a noreg-trivial label. Also, can you do some more investigation when this starts to happen? The bug says affected versions are 9 and 10 but PolicyFile.java has been there long long ago. Was there a regression? Thanks Max > On Jul 12, 2017, at 10:28 AM

(10) RFR of JDK-8184165: sun.security.provider.PolicyFile$PolicyEntry.toString() throws MissingResourceException

2017-07-11 Thread Hamlin Li
Would you please review the below patch? bug: https://bugs.openjdk.java.net/browse/JDK-8184165 webrev: http://cr.openjdk.java.net/~mli/8184165/webrev.00/ Thank you -Hamlin