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

[core] Upgrade saxon to 12.4 #4959

Merged
merged 16 commits into from Apr 18, 2024
Merged

[core] Upgrade saxon to 12.4 #4959

merged 16 commits into from Apr 18, 2024

Conversation

jsotuyod
Copy link
Member

@jsotuyod jsotuyod commented Apr 12, 2024

Describe the PR

Saxon currently supports versions 10, 11 and 12. How long version 10 will remain to be supported is not clear, making the upgrade now gives us some future-proofing, while allowing us to benefit from further improvements in Saxon.

All changes are to internal classes, so this is backwards compatible.

Saxon 11+ and 12.1+ support Java 8+, so since PMD 7.0.0 there is no incompatibility on this front either.

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

@jsotuyod jsotuyod changed the title [core] Upgrade saxon to 12.6 [core] Upgrade saxon to 12.4 Apr 12, 2024
@pmd-test
Copy link

pmd-test commented Apr 12, 2024

1 Message
📖 Compared to master:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Download full report as build artifact
Compared to master:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Download full report as build artifact
Compared to master:
This changeset changes 0 violations,
introduces 0 new violations, 0 new errors and 0 new configuration errors,
removes 0 violations, 0 errors and 0 configuration errors.
Download full report as build artifact

Generated by 🚫 Danger

@jsotuyod jsotuyod added this to the 7.1.0 milestone Apr 18, 2024
@adangel adangel self-requested a review April 18, 2024 17:54
@adangel adangel added dependencies Pull requests that update a dependency file in:xpath Relating to xpath support at large, eg Jaxen / Saxon, custom functions, attribute resolution labels Apr 18, 2024
Copy link
Member

@adangel adangel left a comment

Choose a reason for hiding this comment

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

Thanks!

I think, we should also list this PR in the release notes under "misc".

@@ -94,13 +107,20 @@ static AxisIterator iterateList(List<? extends NodeInfo> nodes) {

@SuppressWarnings({"unchecked", "rawtypes"})
Copy link
Member

Choose a reason for hiding this comment

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

Can we remove this suppress warnings now? I see, that we now use generics...

Copy link
Member

Choose a reason for hiding this comment

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

Hm... we can remove raw types, but still need unchecked
(NodeListIterator requires exactly NodeInfo and not subtypes)

Copy link
Member

@adangel adangel Apr 18, 2024

Choose a reason for hiding this comment

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

I'll try something, but in a separate PR...

adangel added a commit that referenced this pull request Apr 18, 2024
adangel added a commit that referenced this pull request Apr 18, 2024
Merge pull request #4959 from Monits:upgrade-saxon
@adangel adangel merged commit 232c35a into pmd:master Apr 18, 2024
3 checks passed
@jsotuyod jsotuyod deleted the upgrade-saxon branch April 18, 2024 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file in:xpath Relating to xpath support at large, eg Jaxen / Saxon, custom functions, attribute resolution
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants