castor
  1. castor
  2. CASTOR-2277

Incorrect Class name used for Standalone Attribute

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3 rc1
    • Component/s: None
    • Labels:
      None
    • Testcase included:
      yes
    • Number of attachments :
      2

      Description

      When generating code with the enclosed schema, the attribute in Element is reported to have type "Attribute" and not "ElementAttribute" as expected. (ElementAttribute is the one generated)

        Activity

        Hide
        Werner Guttmann added a comment -

        Looks like problem is obvious (iow, the result of a bug, indeed). Will try to attach an initial patch in a few minutes. Unfortunately, I won't be able to include this with 1.2 anymore ... .

        Show
        Werner Guttmann added a comment - Looks like problem is obvious (iow, the result of a bug, indeed). Will try to attach an initial patch in a few minutes. Unfortunately, I won't be able to include this with 1.2 anymore ... .
        Hide
        Werner Guttmann added a comment -

        Just as a small comment: the problem only occurs for attribute references that are based upon an enumeration. For attribute references that use standard XML schema types, everything works as it should.

        Show
        Werner Guttmann added a comment - Just as a small comment: the problem only occurs for attribute references that are based upon an enumeration. For attribute references that use standard XML schema types, everything works as it should.
        Hide
        Werner Guttmann added a comment -

        Initial patch for review. Contains CTF test case as well.

        Show
        Werner Guttmann added a comment - Initial patch for review. Contains CTF test case as well.
        Hide
        Werner Guttmann added a comment -

        Initial patch for review (again).

        Show
        Werner Guttmann added a comment - Initial patch for review (again).

          People

          • Assignee:
            Werner Guttmann
            Reporter:
            Kelvin Chung
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 55 minutes
              55m