RFR(XXS): 8156226: DiagnosticCommandImpl::invoke throws NoSuchMethodException even if the method actually exists but parameters are wrong

Kirill Zhaldbybin kirill.zhaldybin at oracle.com
Tue Jun 14 21:13:28 UTC 2016


David,

Thank you for review!

Regards, Kirill

On 06/13/2016 03:21 AM, David Holmes wrote:
>
>
> On 11/06/2016 6:12 PM, Daniel Fuchs wrote:
>> On 11/06/16 01:41, David Holmes wrote:
>>> Better, but I still wonder what Arrays.toString prints for an empty
>>> array?
>>
>> It prints "[]" - like Collections.emptyList().toString():
>
> Thanks Daniel.
>
> Okay no further comments from me.
>
> David
> -----
>
>> System.out.println("null:                         "
>>           + Arrays.toString((Object[])null));
>>   System.out.println("new Object[0]:                "
>>           + Arrays.toString(new Object[0]));
>>   System.out.println("Arrays.asList(new Object[0]): "
>>           + Arrays.asList(new Object[0]));
>>
>>> null:                         null
>>> new Object[0]:                []
>>> Arrays.asList(new Object[0]): []
>>
>> cheers,
>>
>> -- daniel



More information about the serviceability-dev mailing list