Integrated: 8313080: [lw5] javac parser is not accepting some array types with nullness markers
Vicente Romero
vromero at openjdk.org
Tue Jul 25 22:14:59 UTC 2023
On Tue, 25 Jul 2023 20:40:29 GMT, Vicente Romero <vromero at openjdk.org> wrote:
> Code like:
>
>
> class Test {
> void m(Test[][] t1, Test[][][] t2) {
> Test[][]! l1 = (Test[][]!) t1;
> Test[][][]! l2 = (Test[][][]!) t2;
>
> Test[]![]! l3 = (Test[]![]!) t1;
> Test[]![]![]! l4 = (Test[]![]![]!) t2;
> }
> }
>
>
> is being rejected by javac. Basically the compiler can't deal with nullness markers interleaved in array type declarations. This patch is fixing this issue.
This pull request has now been integrated.
Changeset: 916fbb61
Author: Vicente Romero <vromero at openjdk.org>
URL: https://git.openjdk.org/valhalla/commit/916fbb618a3a271b70a8ad95124d78492bced02d
Stats: 53 lines in 3 files changed: 49 ins; 0 del; 4 mod
8313080: [lw5] javac parser is not accepting some array types with nullness markers
-------------
PR: https://git.openjdk.org/valhalla/pull/889
More information about the valhalla-dev
mailing list