Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8290037: Bindings should clean up after themselves when their weak listeners go out of scope #827

Closed
wants to merge 2 commits into from

Conversation

hjohn
Copy link
Collaborator

@hjohn hjohn commented Jul 14, 2022

This is an initial (incomplete) implementation of 8290037 for evaluation.

If the approach is agreed, I will modify the rest of the *PropertyBase classes which use weak listeners, and add some tests.

I didn't use Cleaner because cleaning up a listener may block.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change requires a CSR request matching fixVersion openjfx19 to be approved (needs to be created)
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Integration blocker

 ⚠️ Too few reviewers with at least role reviewer found (have 0, need at least 1) (failed with the updated jcheck configuration)

Issue

  • JDK-8290037: Bindings should clean up after themselves when their weak listeners go out of scope

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 827

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/827.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jul 14, 2022

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

@openjdk openjdk bot added the rfr Ready for review label Jul 14, 2022
@mlbridge
Copy link

mlbridge bot commented Jul 14, 2022

Webrevs

@kevinrushforth
Copy link
Member

If we go this route it warrants updates to the API docs to describe the behavioral changes being introduced. Specifically, the synchronizing of the add / remove listener methods and any changes to the lifecycle of the bindings.

/reviewers 2
/csr

@openjdk
Copy link

openjdk bot commented Jul 14, 2022

@kevinrushforth
The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 1 Reviewer, 1 Author).

@openjdk openjdk bot added the csr Need approved CSR to integrate pull request label Jul 14, 2022
@openjdk
Copy link

openjdk bot commented Jul 14, 2022

@kevinrushforth has indicated that a compatibility and specification (CSR) request is needed for this pull request.

@hjohn please create a CSR request for issue JDK-8290037 with the correct fix version. This pull request cannot be integrated until the CSR request is approved.

@hjohn
Copy link
Collaborator Author

hjohn commented Jul 14, 2022

If we go this route it warrants updates to the API docs to describe the behavioral changes being introduced. Specifically, the synchronizing of the add / remove listener methods and any changes to the lifecycle of the bindings.

/reviewers 2 /csr

Ah, I was hoping this was one of the routes without requiring a csr. Perhaps it needs a rethink.

@kevinrushforth kevinrushforth self-requested a review July 22, 2022 16:02
@openjdk
Copy link

openjdk bot commented Feb 17, 2023

@hjohn this pull request can not be integrated into master due to one or more merge conflicts. To resolve these merge conflicts and update this pull request you can run the following commands in the local repository for your personal fork:

git checkout feature/cleaner-for-listeners
git fetch https://git.openjdk.org/jfx master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push

@openjdk openjdk bot added the merge-conflict Pull request has merge conflict with target branch label Feb 17, 2023
@bridgekeeper
Copy link

bridgekeeper bot commented Mar 31, 2023

@hjohn This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 29, 2023

@hjohn This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
csr Need approved CSR to integrate pull request merge-conflict Pull request has merge conflict with target branch rfr Ready for review
2 participants