Integrated: More parser fixes for null restricted types
Maurizio Cimadamore
mcimadamore at openjdk.org
Thu Jan 8 15:47:46 UTC 2026
On Thu, 8 Jan 2026 12:33:52 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
This pull request has now been integrated.
Changeset: 0b9edcb9
Author: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL: https://git.openjdk.org/valhalla/commit/0b9edcb909c4df5ccc2030717ae6c9516b983791
Stats: 131 lines in 4 files changed: 99 ins; 10 del; 22 mod
More parser fixes for null restricted types
Reviewed-by: vromero
-------------
PR: https://git.openjdk.org/valhalla/pull/1868
More information about the valhalla-dev
mailing list