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

前端 未结 3 840
无人共我
无人共我 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条回答
  •  Happy的楠姐
    2020-12-13 07:11

    I just spent half a day going through old blogs and posts about this subject, most outdated and not working. Or only working with warnings at runtime. As of december 2020, the following works with Java 15, without any errors or warnings:

    
        javax.xml.bind
        jaxb-api
        2.3.1
    
    
        org.glassfish.jaxb
        jaxb-runtime
        2.3.2
    
    

提交回复
热议问题