RFR: 8294982: Implementation of Classfile API [v36]
Paul Sandoz
psandoz at openjdk.org
Fri Mar 3 16:19:57 UTC 2023
On Fri, 3 Mar 2023 15:50:33 GMT, Adam Sotona <asotona at openjdk.org> 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
More information about the build-dev
mailing list