StAXEventFactory incorrectly processing EndElement QNames
Tomas-Kraus opened this issue · comments
com.sun.xml.fastinfoset.stax.factory.StAXEventFactory is incorrectly processing
EndElement QNames as the parameter order is wrong.
com.sun.xml.fastinfoset.stax.factory.StAXEventFactory
public EndElement createEndElement(String prefix, String namespaceUri, String
localName)
{ EndElementEvent event = new EndElementEvent(prefix, namespaceUri, localName); if(location != null)event.setLocation(location); return event; }
EndElementEvent has the following constructor
public EndElementEvent(String namespaceURI, String localpart, String prefix)
{ _qname = getQName(namespaceURI,localpart,prefix); setEventType(END_ELEMENT); }
This is causing errors when parsing as the QName.equals() do not match as
expected for the end elements
Environment
Operating System: All
Platform: All
Affected Versions
[current]
- Issue Imported From: https://github.com/javaee/metro-fi/issues/27
- Original Issue Raised By:@glassfishrobot
- Original Issue Assigned To: @glassfishrobot
- Original Issue Closed By:@glassfishrobot
@glassfishrobot Commented
Reported by cosmicpaul
@glassfishrobot Commented
oleksiys said:
fixed.
thank you for finding this out!
Tag: FastInfoset-1_2-branch
User: oleksiys
Date: 2009-10-30 11:16:36+0000
Modified:
fi/FastInfoset/src/com/sun/xml/fastinfoset/stax/events/EndElementEvent.java
Log:
fix issue #27
https://fi.dev.java.net/issues/show_bug.cgi?id=27
"StAXEventFactory incorrectly processing EndElement QNames"
@glassfishrobot Commented
Was assigned to fi-issues
@glassfishrobot Commented
This issue was imported from java.net JIRA FI-27
@glassfishrobot Commented
Marked as fixed on Thursday, October 29th 2009, 9:21:22 pm