Migrate JAXB Runtime from com.sun.xml.bind:jaxb-impl:2.3.0
to org.glassfish.jaxb:jaxb-runtime:2.3.1
#29012
Labels
type: dependencies
Pull requests that update a dependency file
Feature Request
For English only, other languages will not be accepted.
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot make decision by current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Is your feature request related to a problem?
Describe the feature you would like.
Error Log
com.sun.xml.bind.v2.runtime.reflect.opt.Injector.<clinit>
is calling an internal functionsun.misc.Unsafe.defineClass(java.lang.String,[B,int,int,java.lang.ClassLoader,java.security.ProtectionDomain)
that does not exist in JDK 17. In other words the corresponding Class failed during introspection.Due to some experimentation, I'm leaning toward this being an issue with older versions of
com.sun.xml.bind:jaxb-impl
. But because Transition from Java EE to Jakarta EE #26041 still needs to wait for Spring Boot 2.x to end the OSS life cycle, we can only seek solutions on the runtime implementation of lower versions of JAXB in Java EE 8. This API involves https://bugs.openjdk.org/browse/JDK-8193033 .When I migrate from
com.sun.xml.bind:jaxb-core:2.3.0
andcom.sun.xml.bind:jaxb-impl:2.3.0
toorg.glassfish.jaxb:jaxb-runtime :2.3.1
, this Error Log disappears and the related PR moves to the next stage.To summarize, I'm looking to migrate the JAXB Runtime from
com.sun.xml.bind:jaxb-impl:2.3.0
toorg.glassfish.jaxb:jaxb-runtime:2.3.1
.The text was updated successfully, but these errors were encountered: