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

Bug 323970

Summary: Usability Issue - Restrict class parameters on MOXy annotations
Product: z_Archived Reporter: Blaise Doughan <blaise.doughan>
Component: EclipselinkAssignee: Blaise Doughan <blaise.doughan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: eclipselink.oxm-inbox
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Core - Fix
none
Core - Fix
none
MOXy - Fix
none
MOXy - Test Cases
none
MOXy - Test Cases none

Description Blaise Doughan CLA 2010-08-30 10:01:46 EDT
Proposal Change:

    Class transformerClass() default void.class;
    
To:  

    Class<? extends FieldTransformer> transformerClass();
    Class<? extends AttributeTransformer> transformerClass() ;

This change will restrict the transformer class to the appropriate type in @XmlReadTransformer and @XmlWriteTransformer.
Comment 1 Blaise Doughan CLA 2010-08-30 10:15:43 EDT
Created attachment 177730 [details]
Core - Fix
Comment 2 Blaise Doughan CLA 2010-08-30 10:37:45 EDT
Created attachment 177732 [details]
Core - Fix

Expanded restricted class paramters to include the following annotations:
- XmlClassExtractor
- XmlCustomizer
- XmlReadTransformer
- XmlWriteTransformer
Comment 3 Blaise Doughan CLA 2010-08-30 10:40:15 EDT
Created attachment 177735 [details]
MOXy - Fix
Comment 4 Blaise Doughan CLA 2010-08-30 11:42:31 EDT
Created attachment 177743 [details]
MOXy - Test Cases
Comment 5 Blaise Doughan CLA 2010-08-30 12:13:43 EDT
Created attachment 177748 [details]
MOXy - Test Cases
Comment 6 Blaise Doughan CLA 2010-08-30 12:50:12 EDT
Fix checked into trunk at rev:  8107

The class parameters on the following annotations are now restricted to the appropriate types:
- @XmlClassExtractor
- @XmlCustomizer
- @XmlReadTransformer
- @XmlWriteTransformer

Code reviewed by:  David McCann
Comment 7 Eclipse Webmaster CLA 2022-06-09 10:09:29 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink