On Sat, 30 Jul 2022 07:45:31 GMT, David Holmes <dhol...@openjdk.org> wrote:
>> 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. My companion question was whether the native code can for efficiently map from array class to component type than Java. ------------- PR: https://git.openjdk.org/jdk/pull/9688