Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 331476

Summary: DOMReader reporting too many endPrefixMapping events
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Core - Fix
none
MOXy - Test Cases none

Description Blaise Doughan CLA 2010-11-30 16:37:53 EST
When a document is created from the XML fragment below a endPrefixMapping event is being called for each attribute.  This can cause problems for the ContentHandler receiving the events.

<?xml version="1.0" encoding="UTF-8"?>
<td:root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:td="foo"
    xsi:schemaLocation="foo foo.xsd"
    a="0"
    b="1"
    c="2"
    d="3"
    e="4"
    f="5"
    g="6"
/>
Comment 1 Blaise Doughan CLA 2010-11-30 16:40:00 EST
Created attachment 184190 [details]
Core - Fix
Comment 2 Blaise Doughan CLA 2010-12-01 16:54:11 EST
Created attachment 184309 [details]
MOXy - Test Cases
Comment 3 Blaise Doughan CLA 2010-12-02 09:38:26 EST
Fix checked into trunk at rev:  8600

Code reviewed by:  David McCann

Now DOMReader properly checks that the attribute name is "xmlns" and not just not null before calling endPrefixMapping.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:32:41 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink