On Wed, 28 Oct 2020 15:00:59 GMT, Jorn Vernee wrote:
>> Hi,
>>
>> Currently, if MethodHandles::permuteArguments is used with a reorder array
>> that is the wrong size, or one of the indexes in it is out of bounds of the
>> new type, we simply get the exception message:
>>
>> bad reorder
On Wed, 28 Oct 2020 14:30:30 GMT, Chris Hegarty wrote:
>> I've added some negative tests that test for the different failure
>> conditions.
>
> Thanks for adding additional test coverage @JornVernee.
>
> Writing a tight implementation of assertThrows is non-trivial - I'm not sure
> that the
> Hi,
>
> Currently, if MethodHandles::permuteArguments is used with a reorder array
> that is the wrong size, or one of the indexes in it is out of bounds of the
> new type, we simply get the exception message:
>
> bad reorder array [...]
>
> I think we can improve the exception message
On Wed, 28 Oct 2020 14:57:44 GMT, Jorn Vernee wrote:
>> Hi,
>>
>> Currently, if MethodHandles::permuteArguments is used with a reorder array
>> that is the wrong size, or one of the indexes in it is out of bounds of the
>> new type, we simply get the exception message:
>>
>> bad reorder