RFR: Fixing completion detection for null-restricted variables and fixing behavior for incorrect null-restricted variables without an initializer.
duke
duke at openjdk.org
Wed Jan 21 13:17:28 UTC 2026
On Mon, 19 Jan 2026 15:42:46 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
> Fixing behavior in two cases:
> - `String! str = ""` (i.e. missing semicolon) should work. This is achieved by fixing the completion analysis to report the snippet as `COMPLETE_WITH_SEMI`.
> - `String! str` (i.e. missing initializer). This should produce an error saying initializer is required, achieved by not using the null initializer in this case.
@lahodaj
Your change (at version 8eefe1bb2f8e57f901cea8e62d1005335ee68217) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/valhalla/pull/1932#issuecomment-3778084339
More information about the valhalla-dev
mailing list