[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wss4j-dev
Subject:    =?utf-8?q?=5BPR=5D_Fix_bugs_regarding_substitution_groups_and_content_extens?= =?utf-8?q?ions_using_
From:       cobizobi_(via_GitHub) <git () apache ! org>
Date:       2024-05-18 6:38:50
Message-ID: PR_kwDODQpj0M5v2k6o () gitbox ! apache ! org
[Download RAW message or body]


cobizobi opened a new pull request, #54:
URL: https://github.com/apache/ws-xmlschema/pull/54

   I have come across two errors for which I provide basic fixes here.
   
   1. If an element with a substitutionGroup did not have an explicit type, an \
IllegalStateException was thrown because of `schemaType == null` and \
`!element.isAbstract()`. Example:  ```
   <xs:element name="any" type="SimpleLiteral" abstract="true"/>
   <xs:element name="title" substitutionGroup="any"/>
   ```
   Here, the exception occurred when walking through the title element. My fix now \
considers the type of the substitutionGroup element if no explicit is given.  
   2. A ClassCastException happened when a particle of type xs:all occurred in an \
xs:extension, e.g.   ```
   <xs:complexContent>
   	<xs:extension base="baseType">
   		<xs:all> ...
   ```
   I added a simple check and add the xs:all items to the constructed sequence \
separately.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic