On Sat, 30 Jul 2022 07:44:11 GMT, David Holmes <dhol...@openjdk.org> wrote:

>> Or, Can the VM do this traversal as/more efficiently than doing at the java 
>> level?
>
> It is usual for the Java code to do such checks and throw exceptions, so that 
> the VM assumes it is correct and only asserts incase something has been 
> missed on the Java side.

Though in this case the Java code has defined behaviour for array types so it 
is correct for the VM to assume this is not an array type and to assert if it 
is.

-------------

PR: https://git.openjdk.org/jdk/pull/9688

Reply via email to