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

Bug 331158

Summary: XMLConversionManager: Empty node ("") should convert to false
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:    
Bug Blocks: 338130    
Attachments:
Description Flags
MOXy - Test Cases
none
Core - Fix none

Description Blaise Doughan CLA 2010-11-25 16:49:40 EST
Similar to how empty node corresponds to 0 for numeric types, an empty node should correspond to false for boolean properties.
Comment 1 Blaise Doughan CLA 2010-12-01 13:23:22 EST
Created attachment 184283 [details]
MOXy - Test Cases
Comment 2 Blaise Doughan CLA 2010-12-01 13:23:37 EST
Created attachment 184284 [details]
Core - Fix
Comment 3 Blaise Doughan CLA 2010-12-01 15:10:24 EST
Fix checked into trunk at rev:  8597

Code Reviewed by:  David McCann

Overrode the convertObjectToBoolean method in XMLConversionManager to convert empty String ("") to false.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:02:30 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink