Skip to content

Translate XMLStreamReader creation errors to StreamReadException#883

Open
Sahana2524 wants to merge 2 commits into
FasterXML:3.xfrom
Sahana2524:wrap-reader-creation-errors
Open

Translate XMLStreamReader creation errors to StreamReadException#883
Sahana2524 wants to merge 2 commits into
FasterXML:3.xfrom
Sahana2524:wrap-reader-creation-errors

Conversation

@Sahana2524

Copy link
Copy Markdown
Contributor

XmlFactory._createParser catches only XMLStreamException around createXMLStreamReader:

Wrapped it in all four _createParser overloads; the test uses a stand-in factory that throws at reader creation.

@github-actions

Copy link
Copy Markdown

🧪 Code Coverage Report

Metric Coverage Change
Instructions coverage 73.50% 📉 -0.050%
Branches branches 68.08% 📈 +0.000%

Coverage data generated from JaCoCo test results

@cowtowncoder cowtowncoder changed the title translate XMLStreamReader creation errors to StreamReadException Translate XMLStreamReader creation errors to StreamReadException Jul 23, 2026
@cowtowncoder

Copy link
Copy Markdown
Member

TBH, this sounds like SJSXP bug we should not pave over -- it really should not leak AAOOBEs.

I'll need to think about this a bit...

@github-actions

Copy link
Copy Markdown

🧪 Code Coverage Report

Metric Coverage Change
Instructions coverage 73.56% 📈 +0.000%
Branches branches 68.08% 📈 +0.000%

Coverage data generated from JaCoCo test results

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.

2 participants