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

Bug 322693

Summary: JAXB Externalized Metadata: Support for type on xml-value
Product: z_Archived Reporter: Rick Barkhouse <rick.barkhouse>
Component: EclipselinkAssignee: David McCann <david.mccann>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: david.mccann, rick.barkhouse
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 321152    
Attachments:
Description Flags
Contains proposed fix + test case modifications
none
Contains proposed fix + supporting test cases + XSD changes none

Description Rick Barkhouse CLA 2010-08-13 17:40:54 EDT
We will need to add a 'type' to xml-value, so that we can override the java.lang.Object Java attribute that is initially present in Dynamic JAXB.
Comment 1 David McCann CLA 2010-08-16 13:31:06 EDT
Created attachment 176707 [details]
Contains proposed fix + test case modifications

We now check XmlValue for type, and if not "##default" we set this type on the
associated Property.

Test case mods:  set type in java model to Object, and set type in xml to
java.lang.BigDecimal.  If the type set in XML isn't processed an error will
occur in the schema gen/comparison area of the test suite.
Comment 2 David McCann CLA 2010-08-16 13:36:13 EDT
Created attachment 176708 [details]
Contains proposed fix + supporting test cases + XSD changes

We now check XmlValue for type, and if not "##default" we set this type on the
associated Property.

Test case mods:  set type in java model to Object, and set type in xml to
java.lang.BigDecimal.  If the type set in XML isn't processed an error will
occur in the schema gen/comparison area of the test suite.
Comment 3 David McCann CLA 2010-08-16 14:10:09 EDT
Fix checked in to trunk, Revision 8048.

Reviewed by:  matt.macivor@oracle.com, rick.barkhouse@oracle.com
Tests: all unit tests pass as expected; jaxb/externalizedmetadata/xmlvalue/XmlValueTestCases
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:05:16 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink
Comment 5 Eclipse Webmaster CLA 2022-06-09 10:08:21 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink