castor
  1. castor
  2. CASTOR-1675

SchemaWriter not serializing anyAttribute child of a complexType

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.4
    • Fix Version/s: 1.0.5
    • Component/s: XML code generator
    • Labels:
      None
    • Environment:
      Any
    • Number of attachments :
      4

      Description

      When serializing a schema using hte SchemaWriter, the anyAttribute child of a complexType (if any) does not get serialized.

      To reproduce, simply create an XSD file that uses <anyAttribute>, deserialize into a Schema object, then serialize using SchemaWriter.

      1. CastorAnyAttributeTest14.java
        3 kB
        Eric Wittmann
      2. patch.c1675.20061102.txt
        0.6 kB
        Werner Guttmann
      3. patch.c1675.sample.20061102.txt
        3 kB
        Werner Guttmann
      4. SchemaWriter.patch
        0.2 kB
        Eric Wittmann

        Activity

        Hide
        Werner Guttmann added a comment -

        JUnit test case (for historic reasons), relative to src/bugs.

        Show
        Werner Guttmann added a comment - JUnit test case (for historic reasons), relative to src/bugs.
        Hide
        Werner Guttmann added a comment -

        Patch committed as is ...

        Show
        Werner Guttmann added a comment - Patch committed as is ...
        Hide
        Edward Kuns added a comment -

        Should the test case be added to SVN?

        Show
        Edward Kuns added a comment - Should the test case be added to SVN?
        Hide
        Werner Guttmann added a comment -

        I guess it won't be easily addable, as it tests the SchemaWriter in addition to SchemaReader .. . Iow, I'd love to, but don't see a way how.

        Show
        Werner Guttmann added a comment - I guess it won't be easily addable, as it tests the SchemaWriter in addition to SchemaReader .. . Iow, I'd love to, but don't see a way how.
        Hide
        Werner Guttmann added a comment -

        Bulk-closing all issues assigned to 1.0.5. Please feel free to re-open any of those when required.

        Show
        Werner Guttmann added a comment - Bulk-closing all issues assigned to 1.0.5. Please feel free to re-open any of those when required.

          People

          • Assignee:
            Werner Guttmann
            Reporter:
            Eric Wittmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 30 minutes
              30m
              Remaining:
              Time Spent - 20 minutes Remaining Estimate - 10 minutes
              10m
              Logged:
              Time Spent - 20 minutes Remaining Estimate - 10 minutes
              20m