Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spring-projects-issues opened this issue Oct 5, 2010 · 3 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

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

@spring-projects-issues
Copy link
Collaborator Author

Eric Dalquist commented

Fix for issue

@spring-projects-issues
Copy link
Collaborator Author

Eric Dalquist commented

Previous patch file had the change listed twice.

@spring-projects-issues
Copy link
Collaborator Author

Arjen Poutsma commented

Fixed, thanks for the patch!

@spring-projects-issues spring-projects-issues added type: bug A general bug in: core Issues in core modules (aop, beans, core, context, expression) labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 3.0.5 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants