On Wed, 7 Jan 2026 16:03:42 GMT, Maurizio Cimadamore <[email protected]> 
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.

src/java.base/share/classes/sun/reflect/generics/reflectiveObjects/NullRestrictedTypeImpl.java
 line 2:

> 1: /*
> 2:  * Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights 
> reserved.

nit copyright year

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

PR Review Comment: 
https://git.openjdk.org/valhalla/pull/1863#discussion_r2669347245

Reply via email to