You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Reading the XML file from the attached sample does not work correctly. The value of the enum attribute is always null. This is because the attribute value cannot be converted to an enum. This is the internal exception message:
Exception [EclipseLink-3001] (Eclipse Persistence Services - 4.0.3.v202405220658): org.eclipse.persistence.exceptions.ConversionException
Exception Description: The object [VALUE2], of class [class java.lang.String], could not be converted to [class com.jaxb.test.TestEnum].
The value cannot be converted because the converter does not exist. And that in turn is because the TestEnum class is not read correctly during creation of the JAXBContext. The internals of the creation of the JAXBContext is rather hard to understand but it seems that it is missing nested types.
Should the @XmlSeeAlso lookup be recursive? Or should properties be processed in org.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processReferencedClass(JavaClass) even if the type is isPostBuilt? I have no clue but that's where it misses the enum type in my case.
To Reproduce
I've include a simple maven project to reproduce the issue. schema-test.zip
The text was updated successfully, but these errors were encountered:
Describe the bug
Reading the XML file from the attached sample does not work correctly. The value of the enum attribute is always
null
. This is because the attribute value cannot be converted to an enum. This is the internal exception message:The value cannot be converted because the converter does not exist. And that in turn is because the
TestEnum
class is not read correctly during creation of theJAXBContext
. The internals of the creation of theJAXBContext
is rather hard to understand but it seems that it is missing nested types.Should the
@XmlSeeAlso
lookup be recursive? Or should properties be processed inorg.eclipse.persistence.jaxb.compiler.AnnotationsProcessor.processReferencedClass(JavaClass)
even if the type isisPostBuilt
? I have no clue but that's where it misses the enum type in my case.To Reproduce
I've include a simple maven project to reproduce the issue.
schema-test.zip
The text was updated successfully, but these errors were encountered: