eclipse-ee4j / jaxb-fi

Apache License 2.0
8 stars 10 forks source link

StAXEventFactory incorrectly processing EndElement QNames #27

Closed Tomas-Kraus closed 14 years ago

Tomas-Kraus commented 14 years ago

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]

Tomas-Kraus commented 6 years ago
Tomas-Kraus commented 14 years ago

@glassfishrobot Commented Reported by cosmicpaul

Tomas-Kraus commented 14 years ago

@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"

Tomas-Kraus commented 14 years ago

@glassfishrobot Commented Was assigned to fi-issues

Tomas-Kraus commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA FI-27

Tomas-Kraus commented 14 years ago

@glassfishrobot Commented Marked as fixed on Thursday, October 29th 2009, 9:21:22 pm