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

Bug 338130

Summary: Empty element should unmarshal to null for BigInteger and BigDecimal properties
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Blaise Doughan <blaise.doughan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on: 331158    
Bug Blocks:    
Attachments:
Description Flags
MOXy - Test Cases
none
Core - Fix none

Description Blaise Doughan CLA 2011-02-24 13:01:19 EST
Although for numeric objects with a primitive counterpart empty elements unmarshal to the value 0.  For the following types and empty element should unmarshal as null:

  - BigInteger
  - BigDecimal
  - Boolean
Comment 1 Blaise Doughan CLA 2011-03-04 12:49:24 EST
Created attachment 190420 [details]
MOXy - Test Cases
Comment 2 Blaise Doughan CLA 2011-03-04 12:51:06 EST
Created attachment 190421 [details]
Core - Fix

Changes changed the following methods in XMLConversionManager to return null instead of 0:

- convertObjectToBigInteger
- convertObjectToBigDecimal
Comment 3 Blaise Doughan CLA 2011-03-04 13:19:01 EST
Checked into trunk at rev:  9076

Code reviewed by:  Rick Barkhouse
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:09:27 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink