-
Notifications
You must be signed in to change notification settings - Fork 478
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
8334739: XYChart and (Stacked)AreaChart properties return incorrect beans #1485
Conversation
👋 Welcome back mmack! A progress list of the required criteria for merging this PR into |
@drmarmac 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:
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 1 new commit pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the 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 (@andy-goryachev-oracle) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
I am wondering if we have more cases like that. Would it be possible to have a unit test to scan over a set of Controls + Shapes + any other classes looking for public properties and checking their |
Searched for For class names A-C found one hit: which means there might be more, but manual scanning of 1,752 total hits might take some time... edit: actually, it's doable. Assuming the formatting is consistent, I found only one additional hit: StackedAreaChart:109 |
in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Please wait 24 hrs for other people to weigh in.
It seems like it ought to be possible to write such a test. Thinking out loud, perhaps the test could take a list of JavaFX object instances (since we need an instance to inspect the bean, and not all of our classes have a no-arg constructor), and for each object enumerate the methods of its class -- including the superclass methods up the chain -- looking for methods named |
Since this fix now includes two other chart classes, maybe change the JBS title (and, correspondingly this PR title) to something a little more generic that would cover them? |
Oh, and definitely a separate issue and not urgent (maybe a good test sprint bug). |
Created umbrella task https://bugs.openjdk.org/browse/JDK-8334744 Currently only mentions the getBean(), but I am sure we can test other invariants. |
Thank you @drmarmac for logging and fixing this and the other bugs! |
/integrate |
/sponsor |
@andy-goryachev-oracle @drmarmac Pushed as commit 17c2dba. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
This PR makes the
XYChart
axes properties return the correct parent XYChart object.Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1485/head:pull/1485
$ git checkout pull/1485
Update a local copy of the PR:
$ git checkout pull/1485
$ git pull https://git.openjdk.org/jfx.git pull/1485/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1485
View PR using the GUI difftool:
$ git pr show -t 1485
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1485.diff
Webrev
Link to Webrev Comment