RFR: More parser fixes for null restricted types [v3]
Vicente Romero
vromero at openjdk.org
Thu Jan 8 15:23:27 UTC 2026
On Thu, 8 Jan 2026 15:17:36 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> This PR fixes a number of leftover issues in the parser:
>> * sometimes the parser accepts `!` before the type arguments of a generic type
>> * null restrictions parsed as part of the array type in an array creation expression are dropped on the floor
>> * null restrictions appearing (erroneously) before an array initializer causes spurious parser errors, as parsers doesn't take bangs into account
>> * null restriction in method reference type qualifier leads to spurious errors
>> * null restriction in inner class creation expressions leads to spurious errors
>
> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
>
> Fix issue with inner class creation
lgtm
-------------
Marked as reviewed by vromero (Committer).
PR Review: https://git.openjdk.org/valhalla/pull/1868#pullrequestreview-3639911010
More information about the valhalla-dev
mailing list