RFR: 8313080: [lw5] javac parser is not accepting some array types with nullness markers
Vicente Romero
vromero at openjdk.org
Tue Jul 25 20:46:09 UTC 2023
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.
-------------
Commit messages:
- 8313080: [lw5] javac parser is not accepting some array types with nullness markers
Changes: https://git.openjdk.org/valhalla/pull/889/files
Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=889&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8313080
Stats: 53 lines in 3 files changed: 49 ins; 0 del; 4 mod
Patch: https://git.openjdk.org/valhalla/pull/889.diff
Fetch: git fetch https://git.openjdk.org/valhalla.git pull/889/head:pull/889
PR: https://git.openjdk.org/valhalla/pull/889
More information about the valhalla-dev
mailing list