Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331813 - IndexedAttributeList returns "" for attribute local name
Summary: IndexedAttributeList returns "" for attribute local name
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-03 14:57 EST by Matt MacIvor CLA
Modified: 2022-06-09 10:23 EDT (History)
0 users

See Also:


Attachments
Proposed Fix (768 bytes, patch)
2010-12-03 15:34 EST, Matt MacIvor CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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