JAXB doesn't unmarshall after updating java from 1.8.0_77 to 1.8.0_121

后端 未结 4 532
遇见更好的自我
遇见更好的自我 2021-01-06 05:42

Yesterday I updated java like posted in the title, now JAXB doesn\'t parse xml anymore. All objects are simply null, nothing seems to be set.

Given this POJO - List

4条回答
  •  生来不讨喜
    2021-01-06 06:25

    I faced the same issue when unmarschalling basic, non-namespaced XML using classes generated from a schema with the elementFormDefault property set to qualified. Simply using the (default) unqualified value solved the problem for me :

    
    
    ...
    
    

提交回复
热议问题