Re:OpenJDK mailing list: Null-safety and value types
by kaba0 on Wednesday February 08, 2023 @12:45AM
(#34704588)
I think it can work in a binary-additive way — the class file gets a new attribute for nullness information, while missing it (older class files) default to “unspecified”. That can be safely consumed by new code, which will get the updated syntax with a new option (specified on a module/package/class basis) where ‘T’ means ‘T!’ and that should be a proper subset of previously compiling code, so I don’t think anything would break that way. Similarly to how generics and unchecked warnings were rolled out.
[ Parent
| on HN ]
There are no comments on this comment yet.