Skip to content

escape schema text copied into the generated java source - #90

Merged
pjfanning merged 1 commit into
apache:trunkfrom
aizu-m:escape-generated-java-source
Aug 5, 2026
Merged

escape schema text copied into the generated java source#90
pjfanning merged 1 commit into
apache:trunkfrom
aizu-m:escape-generated-java-source

Conversation

@aizu-m

@aizu-m aizu-m commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

printStaticFields writes the property qnames straight into a java string literal and printJavaDocBody only filters a literal */, so a target namespace carrying a double quote, or documentation carrying a unicode escape for */, breaks out of the generated source and gets arbitrary code compiled into the binding classes; both are escaped now, the qname sites with the javaStringEscape helper that already sits beside them.

@pjfanning pjfanning left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lgtm

@pjfanning
pjfanning merged commit 7e52b96 into apache:trunk Aug 5, 2026
3 checks passed
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