Skip to content

StaxEventContentHandler does not set Location for StartDocument event [SPR-7620] #12276

@spring-projects-issues

Description

@spring-projects-issues

Eric Dalquist opened SPR-7620 and commented

StaxEventContentHandler doesn't set the configured SAX Locator on the XMLEventFactory until consumeEvent is called. consumeEvent is called after the event is created which means when client code sets a Locator it does not take effect until after the next event that is written to the XMLEventWriter.

I propose modifying setDocumentLocator so that it calls setLocation on the XMLEventFactory immediately.


Affects: 3.0.4

Attachments:

Referenced from: commits 1f29640

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions