[ 
https://issues.apache.org/jira/browse/XMLBEANS-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

PJ Fanning updated XMLBEANS-675:
--------------------------------
    Fix Version/s: 5.4.1

> Fix PROPERTY_QSET indexing for types with several multi-name properties
> -----------------------------------------------------------------------
>
>                 Key: XMLBEANS-675
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-675
>             Project: XMLBeans
>          Issue Type: Task
>            Reporter: PJ Fanning
>            Priority: Major
>             Fix For: 5.4.1
>
>
> https://github.com/apache/poi-xmlbeans/pull/119 raised a bug related to 
> XMLBEANS-644
> In SchemaTypeCodePrinter.printStaticFields the index counter was declared 
> inside the per-property loop, so it reset to zero on every iteration. Every 
> property with more than one accepted QName (typically a substitution group 
> head) was assigned setSetIndex(0), and the generated impl class referenced 
> PROPERTY_QSET[0] for all of them. When a type has two or more such 
> properties, the second and later accessors silently matched the first 
> property's element names.
> This is a regression from the XMLBEANS-644 change (December 2023). It shipped 
> in 5.2.1, 5.3.0, 5.4.0 and 5.4.1. Before that, the index came from a map 
> whose size supplied the next slot, which was correct.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to