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

Bug 345447

Summary: ClassWeaver always weaves @XmlTransient
Product: z_Archived Reporter: Doug Clarke <douglas.clarke>
Component: EclipselinkAssignee: Nobody - feel free to take it <nobody>
Status: NEW --- QA Contact:
Severity: minor    
Priority: P5 CC: blaise.doughan
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Doug Clarke CLA 2011-05-11 11:26:59 EDT
org.eclipse.persistence.internal.jpa.weaving.ClassWeaver - line 185

    public static boolean isJAXBOnPath() {
        isJAXBOnPath = true;
        if (isJAXBOnPath == null) {
            try {
                Class.forName("javax.xml.bind.annotation.XmlTransient");
            } catch (Exception notThere) {
                isJAXBOnPath = false;
            }
        }
        return isJAXBOnPath;
    }

NOte: the first line set the Boolean flag to true so that the if block is effectively dead code that is never used and the method always returns true.

This has been this way for at least one major release. Filing this bug for tracking purposes only.
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:21:55 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink