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

Bug 338722

Summary: JAXB Schemagen: A Derived Type Is Generated Differently From JAXB-RI
Product: z_Archived Reporter: Rick Barkhouse <rick.barkhouse>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Patch. none

Description Rick Barkhouse CLA 2011-03-02 14:44:36 EST
Given the following two classes:

public abstract class Car implements Vehicle{
    private String model;
    private String year;
    private String make;
    // + getters and setters ...

public class Toyota extends Car {
    private String color;
    private final String make="Toyota";
    // + getters and setters ... 

The generated schema will contain "make" properties on both Car and Toyota.  However, the "getMake" method on Toyota is overriding the getter on Car, so a new Property should not be created.
Comment 1 Rick Barkhouse CLA 2011-03-02 14:55:41 EST
Created attachment 190197 [details]
Patch.
Comment 2 Rick Barkhouse CLA 2011-03-02 14:57:01 EST
Fixed, reviewed by mmacivor.

New test cases: SchemaGenInheritanceTestCases
Comment 3 Eclipse Webmaster CLA 2022-06-09 10:28:34 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink