[9] RFR 8157489: AppleProvider in java.base/macosx/classes/module-info.java.extra

Valerie Peng valerie.peng at oracle.com
Fri Jun 10 22:51:52 UTC 2016


Webrev updated at: http://cr.openjdk.java.net/~valeriep/8157489/webrev.02.
Thanks,
Valerie

On 6/10/2016 12:43 PM, Valerie Peng wrote:
> Sure, sounds good to me.
> Will update the test with your feedback.
> Thanks for the review,
> Valerie
>
> On 6/9/2016 6:15 PM, Mandy Chung wrote:
>>
>>> On Jun 9, 2016, at 5:26 PM, Valerie Peng<valerie.peng at oracle.com>  
>>> wrote:
>>>
>>> Webrev updated at: 
>>> http://cr.openjdk.java.net/~valeriep/8157489/webrev.01
>>>
>>
>>    51             if 
>> (!pClass.getModule().getName().equals("java.base")) {
>>
>> You can check if Module object is Object.class.getModule() instead of 
>> checking the module name.
>>
>> Since you expect no provider from java.base, the test should detect 
>> that e.g.
>>
>> if (pClass.getModule() == Object.class.getModule())
>>      throw new RuntimeException(…);
>>
>> Otherwise, looks okay.
>>
>> Mandy



More information about the security-dev mailing list