-
Notifications
You must be signed in to change notification settings - Fork 176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable setUnmarshalListener on XMLBinder #2283
Comments
I made small application to run this reflection piece of code and it works fine with EclipseLink 4.0.4. Your exception is related to Java modules. But this can be solved during Java VM startup. I don't consider this as a bug. |
Closing. |
Before final close I'd like ask You in relation with |
This application is the library docx4j: https://github.com/plutext/docx4j docx4j is an open source (Apache v2) library for creating, editing, and saving OpenXML "packages", including docx, pptx, and xslx. It uses JAXB to create the Java representation; the user can choose whether they wish to use MOXy or jaxb-ri. To use MOXY, they include artifact https://search.maven.org/artifact/org.docx4j/docx4j-JAXB-MOXy/11.5.1/jar You can see there the current release is using:
Although it is possible to workaround this issue by launching the VM with:
this is obviously not desirable for a library which is deployed in a variety of environments. On a related note, please see https://stackoverflow.com/questions/79346466/classcastexception-across-modules-with-org-eclipse-persistence-oxm-xmlbinder which a user has raised regarding org.eclipse.persistence.jaxb.JAXBBinder.updateXML I wasn't able to work around that issue using --add-opens thank you. |
This has been possible in the past via reflection:
but these days is more likely to fail:
The text was updated successfully, but these errors were encountered: