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

Bug 331813

Summary: IndexedAttributeList returns "" for attribute local name
Product: z_Archived Reporter: Matt MacIvor <matt.macivor>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Proposed Fix none

Description Matt MacIvor CLA 2010-12-03 14:57:49 EST
The EclipseLink implementation of IndexedAttributeList will return an "" for an attributes local name in the case that the attribute doesn't have a prefix or namespace Uri. This is causing a problem with Validation because the ValidatorHandler is checking the local name of an attribute to try to match it to the attribute declaration in the schema.

In the case that attr.getLocalName() is null, IndexedAttributeList should return attr.getName() instead of "".
Comment 1 Matt MacIvor CLA 2010-12-03 15:34:20 EST
Created attachment 184509 [details]
Proposed Fix
Comment 2 Matt MacIvor CLA 2010-12-06 16:10:17 EST
Proposed fix checked in to SVN
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:23:47 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink