Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331158 - XMLConversionManager: Empty node ("") should convert to false
Summary: XMLConversionManager: Empty node ("") should convert to false
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: Blaise Doughan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 338130
  Show dependency tree
 
Reported: 2010-11-25 16:49 EST by Blaise Doughan CLA
Modified: 2022-06-09 10:02 EDT (History)
1 user (show)

See Also:


Attachments
MOXy - Test Cases (3.37 KB, patch)
2010-12-01 13:23 EST, Blaise Doughan CLA
no flags Details | Diff
Core - Fix (923 bytes, patch)
2010-12-01 13:23 EST, Blaise Doughan CLA
no flags Details | Diff

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