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

8285097: Duplicate XML keys in XPATHErrorResources.java and XSLTErrorResources.java #8318

Closed
wants to merge 6 commits into from

Conversation

shruacha1234
Copy link
Contributor

@shruacha1234 shruacha1234 commented Apr 20, 2022

Removing the Duplicate keys present in XSLTErrorResources.java and XPATHErrorResources.java

The bug report for the same: https://bugs.openjdk.java.net/browse/JDK-8285097


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (1 review required, with at least 1 reviewer)

Issue

  • JDK-8285097: Duplicate XML keys in XPATHErrorResources.java and XSLTErrorResources.java

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/8318/head:pull/8318
$ git checkout pull/8318

Update a local copy of the PR:
$ git checkout pull/8318
$ git pull https://git.openjdk.java.net/jdk pull/8318/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 8318

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/8318.diff

@bridgekeeper bridgekeeper bot added the oca Needs verification of OCA signatory status label Apr 20, 2022
@bridgekeeper
Copy link

bridgekeeper bot commented Apr 20, 2022

Hi @shruacha1234, welcome to this OpenJDK project and thanks for contributing!

We do not recognize you as Contributor and need to ensure you have signed the Oracle Contributor Agreement (OCA). If you have not signed the OCA, please follow the instructions. Please fill in your GitHub username in the "Username" field of the application. Once you have signed the OCA, please let us know by writing /signed in a comment in this pull request.

If you already are an OpenJDK Author, Committer or Reviewer, please click here to open a new issue so that we can record that fact. Please use "Add GitHub user shruacha1234" as summary for the issue.

If you are contributing this work on behalf of your employer and your employer has signed the OCA, please let us know by writing /covered in a comment in this pull request.

@openjdk
Copy link

openjdk bot commented Apr 20, 2022

@shruacha1234 The following label will be automatically applied to this pull request:

  • core-libs

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the core-libs core-libs-dev@openjdk.org label Apr 20, 2022
@backwaterred
Copy link
Contributor

@shruacha1234, a few notes specific to openJDK PRs:

  • Please change the issue name to: "8285097: Duplicate XML keys in XPATHErrorResources.java and XSLTErrorResources.java" this will correctly link the issue in bugs.openjdk.net
  • Please enable github actions. This allows the pre-tests to run.

@shruacha1234 shruacha1234 changed the title Removing Duplicate keys present in XSLTErrorResources.java and XPATHErrorResources.java 8285097: Duplicate XML keys in XPATHErrorResources.java and XSLTErrorResources.java Apr 22, 2022
@shruacha1234
Copy link
Contributor Author

shruacha1234 commented Apr 22, 2022

This contribution is on behalf of my employer, IBM, which is a corporate OCA signatory.

@shruacha1234
Copy link
Contributor Author

shruacha1234 commented Apr 22, 2022

/covered

@bridgekeeper bridgekeeper bot removed the oca Needs verification of OCA signatory status label Apr 27, 2022
@openjdk openjdk bot added the rfr Pull request is ready for review label Apr 27, 2022
@mlbridge
Copy link

mlbridge bot commented Apr 27, 2022

Copy link
Member

@JoeWang-Java JoeWang-Java 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.

@openjdk
Copy link

openjdk bot commented May 2, 2022

@shruacha1234 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:

8285097: Duplicate XML keys in XPATHErrorResources.java and XSLTErrorResources.java

Reviewed-by: joehw, tsteele

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 383 new commits pushed to the master branch:

  • 5e5500c: 6782021: It is not possible to read local computer certificates with the SunMSCAPI provider
  • d65fba4: 8286452: The array length of testSmallConstArray should be small and const
  • 125efe6: 8286744: failure_handler: dmesg command on macos fails to collect data due to permission issues
  • 40f4dab: 8286756: Cleanup foreign API benchmarks
  • af2918f: 8286787: Expand use of @inheritdoc in AudioInputStream
  • 24cab0a: 8286740: JFR: Active Setting event emitted incorrectly
  • a31130f: 7131823: bug in GIFImageReader
  • 4bc7b7d: 8286760: Update citation of "Effective Java" second edition to third edition
  • c044cb8: 8286399: Address possibly lossy conversions in JDK Build Tools
  • b884db8: 8285844: TimeZone.getTimeZone(ZoneOffset) does not work for all ZoneOffsets and returns GMT unexpected
  • ... and 373 more: https://git.openjdk.java.net/jdk/compare/46b2e547a9f680a2a93fecc2b223e895c26e96d7...master

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 (@JoeWang-Java) 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 the ready Pull request is ready to be integrated label May 2, 2022
@shruacha1234
Copy link
Contributor Author

/integrate

@backwaterred
Copy link
Contributor

@shruacha1234 Please don't integrate without addressing the comments left in my review. There are several files that still use the old key incorrectly.

@backwaterred
Copy link
Contributor

It also looks like you have not run the pre-tests yet. Please enable them in GitHub Actions and confirm that they pass.

https://wiki.openjdk.java.net/display/SKARA/Testing

@JoeWang-Java
Copy link
Member

Note that I've run the tests locally. The default test configuration is tier1, which isn't really helpful in this case excepting heating up the planet. If you plan to do more on java.xml, you may run tier2 to verify your changes.

@backwaterred
Copy link
Contributor

LGTM. Nicely done @shruacha1234

@JoeWang-Java
Copy link
Member

Changing resource bundles is not required as the L10n resource files update would cover that. As you've modified the files, you'll need to update the license header, using XPATHErrorResources_ja.java as an example and update the year and LastModified tag.

@JoeWang-Java
Copy link
Member

After the last update, the years in the copyright header and LastModified tag do not match. For example, the header for XPATHErrorResources_de.java starts like: Copyright (c) 2019, 2021, where 2021 needs to be updated to 2022. When I mentioned using XPATHErrorResources_ja.java as an example, I meant replacing "reserved comment block" with the copyright header and then update the copyright year. Sorry if I wasn't clear enough. But basically using that as a template for the format of the header, and keep the year updated to the current. Thanks.

@JoeWang-Java
Copy link
Member

Copyright years for XRTreeFragSelectWrapper.java and XSLTErrorResources.java were still not updated, with the later missing the LastModified tag. Please double check all files before integrate.

Copy link
Member

@JoeWang-Java JoeWang-Java left a comment

Choose a reason for hiding this comment

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

They all look good now. Thanks.

@shruacha1234
Copy link
Contributor Author

@JoeWang-Java
Added Copyright header year and Last-Modified tag, with this commit the test is failing could you please suggest the same

@JoeWang-Java
Copy link
Member

Did you mean the failure (Pre-submit tests - Linux x86 - Test (tier1) ) above? That's not related to your change.

@shruacha1234
Copy link
Contributor Author

@JoeWang-Java Yes.
Shall I comment as integrate then?

@JoeWang-Java
Copy link
Member

@JoeWang-Java Yes. Shall I comment as integrate then?

Yes, please go ahead with integrate.

@shruacha1234
Copy link
Contributor Author

integrate

@JoeWang-Java
Copy link
Member

JoeWang-Java commented May 16, 2022

integrate

I think you missed slash, it's slash integrate.

@shruacha1234
Copy link
Contributor Author

/integrate

@JoeWang-Java
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented May 16, 2022

@JoeWang-Java The change author (@shruacha1234) must issue an integrate command before the integration can be sponsored.

@JoeWang-Java
Copy link
Member

/integrate

There may be sth. with your input, it's not recognized as Git command. Try again, or copy this command instead.

@naotoj
Copy link
Member

naotoj commented May 16, 2022

Do not enclose the skara command within backquotes.

@JoeWang-Java
Copy link
Member

Do not enclose the skara command within backquotes.

Thanks Naoto! I didn't realize that's what he did :-)

@shruacha1234
Copy link
Contributor Author

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label May 17, 2022
@openjdk
Copy link

openjdk bot commented May 17, 2022

@shruacha1234
Your change (at version bcad12e) is now ready to be sponsored by a Committer.

@shruacha1234
Copy link
Contributor Author

@JoeWang-Java I have issued the integrate command. Now it is ready to be sponsored. Please do the needful

@JoeWang-Java
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented May 18, 2022

Going to push as commit b5a3d28.
Since your change was applied there have been 423 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label May 18, 2022
@openjdk openjdk bot closed this May 18, 2022
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels May 18, 2022
@openjdk
Copy link

openjdk bot commented May 18, 2022

@JoeWang-Java @shruacha1234 Pushed as commit b5a3d28.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-libs core-libs-dev@openjdk.org integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

4 participants