eclipse-ee4j / jaxb-ri

Jaxb RI
https://eclipse-ee4j.github.io/jaxb-ri/
BSD 3-Clause "New" or "Revised" License
202 stars 110 forks source link

[binder] IllegalArgumentException if no local name is there for #1807

Open laeubi opened 2 months ago

laeubi commented 2 months ago

If one tries to update an element with binder that is not @XmlRootElement the following code is called

https://github.com/eclipse-ee4j/jaxb-ri/blob/b7d1ff7a13cecfaadde733387216b5cad09cc5b5/jaxb-ri/runtime/impl/src/main/java/org/glassfish/jaxb/runtime/v2/runtime/BinderImpl.java#L180-L182

but it could happen that localName is null resulting in an IllegalArgumentException from QName conctructor. In such a case there should either be an JaxbException if this is illegal or fall back to the element name.