RFR: 8341483: Clarify special case handling of Types.getArrayType
Joe Darcy
darcy at openjdk.org
Fri Oct 4 17:33:45 UTC 2024
On Fri, 4 Oct 2024 04:33:39 GMT, Chen Liang <liach at openjdk.org> wrote:
> Are array types valid component types of array types? Not sure how it works in the language, but an array type is not a valid component type if it has 255 dimensions.
Yes; an array type is a reference type and a multi-dimensional array is modeled as an array-of-arrays. I don't know if this particular build would check for the dimensional limit, but it wouldn't be an unreasonable case to add to the test.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/21346#issuecomment-2394207382
More information about the compiler-dev
mailing list