krasa / krasa-jaxb-tools

XJC / JAXB plugin for generation of Bean Validation Annotations (JSR-303) and replacing primitive types
Apache License 2.0
61 stars 47 forks source link

Exclude "serialVersionUID" from processing XReplacePrimitives #55

Closed AJGHM-Khonraad closed 7 years ago

AJGHM-Khonraad commented 7 years ago

Using an xjc binding

<jxb:globalBindings>
   <jxb:serializable uid="1"/>  
</jxb:globalBindings>

(i.e. with a uid attribute defined) generates the code

private final static long serialVersionUID = 1L;

-XReplacePrimitives then tries to replace that field and the (non existent) getter and setter and this results in an RTE.