Skip to content

Issue #13672: kill pitest mutation in XmlLoader#13804

Merged
romani merged 1 commit intocheckstyle:masterfrom
romani:13672-pitest-XmlLoader
Oct 5, 2023
Merged

Issue #13672: kill pitest mutation in XmlLoader#13804
romani merged 1 commit intocheckstyle:masterfrom
romani:13672-pitest-XmlLoader

Conversation

@romani
Copy link
Copy Markdown
Member

@romani romani commented Sep 30, 2023

one item from Issue #13672

test is not for coverage of mutation, just to prove that SYSTEM reference works.

There is no plans for jdk to remove:
https://github.com/openjdk/jdk17/blob/4afbcaf55383ec2f5da53282a1547bac3d099e9d/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/XMLEntityManager.java#L1059-L1067

https://github.com/openjdk/jdk/blob/bd918f49d29bcbc699e07b4ef8d23cfe1abd32df/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/XMLEntityManager.java#L1062-L1070

so it handle null from this method as required and do load of system entity already, so we do not need to do this in our code. So now code just handle load by PUBLIC and something is not matching/found return null, and Xerces does load by SYSTEM.

JavaParser.java mutation is just moved up, I was not able to keep it at original place, as after each execution of our pitest scrip it is moved up.

@romani romani force-pushed the 13672-pitest-XmlLoader branch from 8e2b5a1 to d59744b Compare September 30, 2023 14:25
@romani romani requested a review from rdiachenko September 30, 2023 14:30
@romani romani force-pushed the 13672-pitest-XmlLoader branch 2 times, most recently from 3998a7e to 13300b5 Compare September 30, 2023 15:19
Copy link
Copy Markdown
Member

@rdiachenko rdiachenko left a comment

Choose a reason for hiding this comment

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

lgtm

@rdiachenko rdiachenko assigned Vyom-Yadav and unassigned rdiachenko Oct 1, 2023
@rdiachenko rdiachenko requested a review from Vyom-Yadav October 1, 2023 11:49
@romani romani merged commit 136e500 into checkstyle:master Oct 5, 2023
@romani romani deleted the 13672-pitest-XmlLoader branch October 5, 2023 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants