Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 345447 - ClassWeaver always weaves @XmlTransient
Summary: ClassWeaver always weaves @XmlTransient
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P5 minor (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-11 11:26 EDT by Doug Clarke CLA
Modified: 2022-06-09 10:21 EDT (History)
1 user (show)

See Also:


Attachments

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