Integrated: 8374730: Add support for null restriction in j.l.r.Type
Maurizio Cimadamore
mcimadamore at openjdk.org
Wed Jan 7 18:40:04 UTC 2026
On Wed, 7 Jan 2026 16:03:42 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> This PR adds j.l.r.Type support for null restrictions.
>
> More specifically, a new public interface is added, namely `NullRestrictedType`, modelling types with null restrictions.
>
> Changes to the signature parsing code have been made so that instances of the new interface are generated accordingly.
> A new test makes sure that everything behaves correctly.
>
> Note: we should also make sure that the `AnnotatedType` hierarchy is changed to reflect the null-restriction changes, but for now that is lower priority and will be pursued in a separate PR.
This pull request has now been integrated.
Changeset: b460c92c
Author: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL: https://git.openjdk.org/valhalla/commit/b460c92c5743423e50c805eeb346678733ae18f3
Stats: 387 lines in 11 files changed: 380 ins; 5 del; 2 mod
8374730: Add support for null restriction in j.l.r.Type
Reviewed-by: vromero
-------------
PR: https://git.openjdk.org/valhalla/pull/1863
More information about the valhalla-dev
mailing list