castor

The SchemaWriter doesn't work as excepted when printing annotations with more than one documentation element

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.1.1
  • Component/s: XML
  • Labels:
    None
  • Environment:
    Java 1.5.x, Windows XP, Netbeans 5.5
  • Number of attachments :
    2

Description

The schema model seems to be built correctly. See attached test case (or http://pastebin.com/893865 ). The SchemaWriter plots only the first documentation source in all documentation elements.

Activity

Hide
Werner Guttmann added a comment -

I think I have found the problem. Will attach a patch for review tommorrow.

Show
Werner Guttmann added a comment - I think I have found the problem. Will attach a patch for review tommorrow.
Hide
Werner Guttmann added a comment -

Patch for review. I'd appreciate if you could apply the patch and build a JAR yourself ... and test things.

Show
Werner Guttmann added a comment - Patch for review. I'd appreciate if you could apply the patch and build a JAR yourself ... and test things.
Hide
Oliver Fourman added a comment -

The patch works for me
Testoutput:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation source="INFO 1"/>
<xsd:documentation source="INFO 2"/>
<xsd:documentation source="INFO 3"/>
</xsd:annotation>
</xsd:schema>

  • INFO 1
  • INFO 2
  • INFO 3
Show
Oliver Fourman added a comment - The patch works for me Testoutput: <?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:annotation> <xsd:documentation source="INFO 1"/> <xsd:documentation source="INFO 2"/> <xsd:documentation source="INFO 3"/> </xsd:annotation> </xsd:schema>
  • INFO 1
  • INFO 2
  • INFO 3

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: