Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 322693 - JAXB Externalized Metadata: Support for type on xml-value
Summary: JAXB Externalized Metadata: Support for type on xml-value
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: David McCann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 321152
  Show dependency tree
 
Reported: 2010-08-13 17:40 EDT by Rick Barkhouse CLA
Modified: 2022-06-09 10:08 EDT (History)
2 users (show)

See Also:


Attachments
Contains proposed fix + test case modifications (7.78 KB, patch)
2010-08-16 13:31 EDT, David McCann CLA
no flags Details | Diff
Contains proposed fix + supporting test cases + XSD changes (8.84 KB, patch)
2010-08-16 13:36 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 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