Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323970 - Usability Issue - Restrict class parameters on MOXy annotations
Summary: Usability Issue - Restrict class parameters on MOXy annotations
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: Blaise Doughan CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-30 10:01 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:09 EDT (History)
1 user (show)

See Also:


Attachments
Core - Fix (4.25 KB, patch)
2010-08-30 10:15 EDT, Blaise Doughan CLA
no flags Details | Diff
Core - Fix (6.62 KB, patch)
2010-08-30 10:37 EDT, Blaise Doughan CLA
no flags Details | Diff
MOXy - Fix (2.48 KB, patch)
2010-08-30 10:40 EDT, Blaise Doughan CLA
no flags Details | Diff
MOXy - Test Cases (6.12 KB, patch)
2010-08-30 11:42 EDT, Blaise Doughan CLA
no flags Details | Diff
MOXy - Test Cases (7.61 KB, patch)
2010-08-30 12:13 EDT, Blaise Doughan CLA
no flags Details | Diff

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