castor
  1. castor
  2. CASTOR-1881

Unwanted generation from imported schemas

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.1 M1, 1.1 M2, 1.1 M3, 1.1
    • Fix Version/s: 1.2
    • Component/s: XML code generator
    • Labels:
      None
    • Environment:
      Problem started at 0.9.9-M1 including 1.1, 0.9.7 works as expected
    • Testcase included:
      yes
    • Number of attachments :
      5

      Description

      I never have "generateImportedSchemas" enabled. Nevertheless castor generates sources from imported schemas.
      In my case only the complexTypes of the imported schema are generated which are referenced from the main schema.

        Activity

        Hide
        Werner Guttmann added a comment -

        I will have to look into this (again). I've got plenty of time this weekend, so let's see how far I get. I wish somebody would be willing to pay for this .. as clearly I am using my spare time ... . Basically, I am in the process of preparing release 1.1.3.

        Show
        Werner Guttmann added a comment - I will have to look into this (again). I've got plenty of time this weekend, so let's see how far I get. I wish somebody would be willing to pay for this .. as clearly I am using my spare time ... . Basically, I am in the process of preparing release 1.1.3.
        Hide
        Werner Guttmann added a comment -

        > Also, some code pieces in SourceGenerator look dubious.
        Matthias, can you please attach a patch that identifies the dubious code in question with e.g. a // TODO item ?

        Show
        Werner Guttmann added a comment - > Also, some code pieces in SourceGenerator look dubious. Matthias, can you please attach a patch that identifies the dubious code in question with e.g. a // TODO item ?
        Hide
        Werner Guttmann added a comment -

        Actually, found it myself ... .

        Show
        Werner Guttmann added a comment - Actually, found it myself ... .
        Hide
        Werner Guttmann added a comment -

        The patch committed deals with this little stupid code section in SourceGenerator as well .. .

        Show
        Werner Guttmann added a comment - The patch committed deals with this little stupid code section in SourceGenerator as well .. .
        Hide
        Matthias Hanisch added a comment -

        Thank you very much, Werner!
        I will try to verify this ASAP. Probably begin of next week.

        Show
        Matthias Hanisch added a comment - Thank you very much, Werner! I will try to verify this ASAP. Probably begin of next week.

          People

          • Assignee:
            Werner Guttmann
            Reporter:
            Matthias Hanisch
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: