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

Bug 314764

Summary: JAXB Externalized Metadata: Schema gen incorrect wrt null policy and nillable
Product: z_Archived Reporter: David McCann <david.mccann>
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: 308677    
Attachments:
Description Flags
Contains proposed fix none

Description David McCann CLA 2010-05-27 15:41:10 EDT
When we encounter a property with a null policy that sets:

null-representation-for-xml="XSI_NIL"

We should be setting 'nillable=true' on the generated schema component for that property.  We currently do not.
Comment 1 David McCann CLA 2010-05-28 12:32:34 EDT
Created attachment 170378 [details]
Contains proposed fix
Comment 2 David McCann CLA 2010-05-28 12:35:21 EDT
Reviewed by:  matt.macivor@oracle.com
Tests:  all unit tests pass as expected; jaxb/externalizedmetadata/mappings/DirectMappingTestCases
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:34:19 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink