Skip to content

Conversation

@lahodaj
Copy link
Contributor

@lahodaj lahodaj commented Jan 19, 2026

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.

Progress

  • Change must not contain extraneous whitespace

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/valhalla.git pull/1932/head:pull/1932
$ git checkout pull/1932

Update a local copy of the PR:
$ git checkout pull/1932
$ git pull https://git.openjdk.org/valhalla.git pull/1932/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 1932

View PR using the GUI difftool:
$ git pr show -t 1932

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/valhalla/pull/1932.diff

Using Webrev

Link to Webrev Comment

…behavior for incorrect null-restricted variables without an initializer.
@bridgekeeper
Copy link

bridgekeeper bot commented Jan 19, 2026

👋 Welcome back jlahoda! A progress list of the required criteria for merging this PR into bworld will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Jan 19, 2026

@lahodaj This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

Fixing completion detection for null-restricted variables and fixing behavior for incorrect null-restricted variables without an initializer.

Reviewed-by: vromero, mcimadamore

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 2 new commits pushed to the bworld branch:

  • a30f387: Minor cleanup, preview and since
  • 67758d3: add use site null checks for fields

Please see this link for an up-to-date comparison between the source branch of this pull request and the bworld branch.
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@vicente-romero-oracle, @mcimadamore) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Jan 19, 2026
@mlbridge
Copy link

mlbridge bot commented Jan 19, 2026

Webrevs

Copy link
Contributor

@vicente-romero-oracle vicente-romero-oracle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Collaborator

@mcimadamore mcimadamore left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@lahodaj
Copy link
Contributor Author

lahodaj commented Jan 21, 2026

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jan 21, 2026
@openjdk
Copy link

openjdk bot commented Jan 21, 2026

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored

Development

Successfully merging this pull request may close these issues.

3 participants