RFR: 8374730: Add support for null restriction in j.l.r.Type [v2]

Vicente Romero vromero at openjdk.org
Wed Jan 7 18:32:02 UTC 2026


On Wed, 7 Jan 2026 18:22:49 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.
>
> Maurizio Cimadamore has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Address review comments

looks good

-------------

Marked as reviewed by vromero (Committer).

PR Review: https://git.openjdk.org/valhalla/pull/1863#pullrequestreview-3636250400


More information about the valhalla-dev mailing list