-
Notifications
You must be signed in to change notification settings - Fork 450
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
8302511: HitInfo.toString() throws IllegalArgumentException #1154
8302511: HitInfo.toString() throws IllegalArgumentException #1154
Conversation
👋 Welcome back angorya! A progress list of the required criteria for merging this PR into |
Webrevs
|
Reviewers: @prrace @karthikpandelu /reviewers 2 |
@kevinrushforth |
The fix looks good to me, but I'll let Phil and Karthik formally review it. |
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.
The fix looks good to me.
Can we add a test to verify the changes?
Another minor comment: copyright year can be updated in Text.java as well.
thank you for the suggestions, @karthikpandelu !
|
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.
Thanks for updating the test and adding new test @andy-goryachev-oracle.
Please check the jcheck failure.
I have one minor comment added inline.
@BeforeClass | ||
public static void initFX() { | ||
long seed = new Random().nextLong(); | ||
System.out.println("seed=" + seed); |
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.
Do we need this print statement?
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.
yes. I've added a brief comment, but let me explain in more detail:
these tests use random patterns to avoid hitting the same values each time. for example, in TextFlowSurrogatePairInsertionIndexTest many tests incremented the x coordinate by 5 prior to this change, but what if we had an error condition happening with x = 21?. the old test never hit that value, but the new one might (at some point). so we effectively extending the test coverage every time the test runs.
and, if we ever encounter a failure, it will be possible to reproduce the exact failure scenario by setting the same seed as found in the failed log.
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.
Thanks for the details @andy-goryachev-oracle
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.
LGTM.
@andy-goryachev-oracle 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 7 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
/integrate |
Going to push as commit d2683b9.
Your commit was automatically rebased without conflicts. |
@andy-goryachev-oracle Pushed as commit d2683b9. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
A recent change in JDK-8304831 ensured that insertionIndex is always computed prior to HitInfo construction, making it possible to remove buggy logic in HitInfo. This change also allows for removal of the 'text' field.
There should be no impact since the constructor is package protected.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jfx.git pull/1154/head:pull/1154
$ git checkout pull/1154
Update a local copy of the PR:
$ git checkout pull/1154
$ git pull https://git.openjdk.org/jfx.git pull/1154/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1154
View PR using the GUI difftool:
$ git pr show -t 1154
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jfx/pull/1154.diff
Webrev
Link to Webrev Comment