-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
Attributes.getValue(String qName)
sometimes returns values from previous elements
#80
Comments
@nedtwigg Apologies for somehow missing this report. I don't know if it'd be possible, but I'd really like a reproduction (I assume "entity" in report means "element") to fix the problem. I can try to build something on my end based on description and see how that goes; but may need help. |
Ok, no. I do need a test case here to reproduce the problem. And I think the issue is with lookup, not bounds checks; some state is not being cleared, likely. |
The thing I was using this for is still alive, but not currently under active development. I did a quick |
@nedtwigg understood. Thank you for all help you can give. |
I have an entity with no attributes. But
getValue("SomeKey")
is returning a value from a previous element.I think the problem is that these lines
aalto-xml/src/main/java/com/fasterxml/aalto/sax/SAXParserImpl.java
Lines 654 to 666 in 0820590
Are missing the
|| index >= _attrCount
that this hasaalto-xml/src/main/java/com/fasterxml/aalto/sax/SAXParserImpl.java
Lines 647 to 652 in 0820590
The text was updated successfully, but these errors were encountered: