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

Bug 335716

Summary: JAXB: Byte[] and byte[] should not be treated the same.
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:
Bug Depends on:    
Bug Blocks: 348116    
Attachments:
Description Flags
Proposed Fix and Tests none

Description Matt MacIvor CLA 2011-01-28 13:07:23 EST
In JAXB a property of type byte[] or a root level byte[] indicates binary data which is mapped to an element or attribute of type base64Binary. Currently EclipseLink treats Byte[] in the same way, mapping it to a base64Binary element and treating it as a possible attachment.

However Byte[] should be treated as a list of bytes, and be mapped like an Integer[] or any other primitive wrapper type. 

This discrepancy is causing failures in the JAX-WS TCK when run with EclipseLink as the JAXB provider.
Comment 1 Matt MacIvor CLA 2011-01-28 13:44:43 EST
Created attachment 187863 [details]
Proposed Fix and Tests
Comment 2 Matt MacIvor CLA 2011-02-03 10:55:53 EST
Attached patch checked in to SVN
Reviewed by Blaise Doughan
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:35:34 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink