Skip to content

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

Open
aizu-m wants to merge 1 commit into
apache:trunkfrom
aizu-m:escape-generated-java-source
Open

escape schema text copied into the generated java source#90
aizu-m wants to merge 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

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.

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.

1 participant