Proper fix for Java 10 complaining about illegal reflection access by jaxb-impl 2.3.0?

前端 未结 3 841
无人共我
无人共我 2020-12-13 06:42

We are looking at upgrading some legacy code to Java 10. As JAXB is not visible by default (EDIT: and the proper long term solution is not to circumvent the sympto

3条回答
  •  借酒劲吻你
    2020-12-13 07:36

    kudos to @Roman Grigoriadi , He was right, the updated 2.4 version fixes the warning issues.

    Just add the dependencies below to the pom file

    
      javax.xml.bind
      jaxb-api
      2.4.0-b180830.0359
    
    
      org.glassfish.jaxb
      jaxb-runtime
      2.4.0-b180608.0325
    
    

提交回复
热议问题