On Fri, 3 Mar 2023 15:50:33 GMT, Adam Sotona <[email protected]> wrote:
>> src/java.base/share/classes/jdk/internal/classfile/instruction/NewMultiArrayInstruction.java
>> line 60:
>>
>>> 58: static NewMultiArrayInstruction of(ClassEntry arrayTypeEntry,
>>> 59: int dimensions) {
>>> 60: return new
>>> AbstractInstruction.UnboundNewMultidimensionalArrayInstruction(arrayTypeEntry,
>>> dimensions);
>>
>> Should we validate that the dimensionality of `arrayType` is greater than or
>> equal to `dimensions`?
>
> Architectural decision is to do not provide much of validation in favour of
> performance, however it might be re-visited in cases like this. Please raise
> the validation topic at classfile-api-dev at openjdk.org, thanks.
Ok.
-------------
PR: https://git.openjdk.org/jdk/pull/10982