Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314764 - JAXB Externalized Metadata: Schema gen incorrect wrt null policy and nillable
Summary: JAXB Externalized Metadata: Schema gen incorrect wrt null policy and nillable
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: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 308677
  Show dependency tree
 
Reported: 2010-05-27 15:41 EDT by David McCann CLA
Modified: 2022-06-09 10:34 EDT (History)
0 users

See Also:


Attachments
Contains proposed fix (3.51 KB, patch)
2010-05-28 12:32 EDT, David McCann CLA
no flags Details | Diff

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