RFR: Support for null-restricted types in JShell

duke duke at openjdk.org
Fri Jan 16 16:57:56 UTC 2026


On Fri, 16 Jan 2026 15:45:02 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

> Base on mcimadamore's idea of desugaring like:
> 
> String! str = init;
> =>
> class JShellClass {
>     public static class Holder {
>         public static String! str = init;
>     }
>     static Object do_it$() {
>         return Holder.str;
>     }
> }

@lahodaj 
Your change (at version 428b5f7e2dd4078b9c7419eccd99da7d4df6e088) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/valhalla/pull/1925#issuecomment-3760940417


More information about the valhalla-dev mailing list