TIBCOSoftware / genxdm

GenXDM: XQuery/XPath Data Model API, bridges, and processors for tree-model neutral access to XML.
http://www.genxdm.org/
9 stars 4 forks source link

Call SchemaParticle.isMaxOccursUnbounded() prior to calling SchemaParticle.getMaxOccurs() #128

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Looks like we have several places in GenXDM where we're calling 
SchemaParticle.getMaxOccurs() without first calling isMaxOccursUnbounded().  
Here's one example:
  org.genxdm.bridgekit.xs.TypesBridgeImpl.elementUseType(TypesBridgeImpl.java:1185

This results in an AssertionError if the particle's maxOccurs is unbounded.

Original issue reported on code.google.com by joe.bays...@gmail.com on 21 Mar 2013 at 7:19

GoogleCodeExporter commented 9 years ago
Ensured that SchemaParticle.isMaxOccursUnbounded() is called, when necessary, 
before calling SchemaParticle.maxOccurs().

Original comment by joe.bays...@gmail.com on 22 Mar 2013 at 2:15