castor
  1. castor
  2. CASTOR-716

SourceGenerator doesn't correctly generate the .equals() method for base64binary

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.5.3, 1.0, 1.0.1, 1.0.2, 1.0.3
    • Fix Version/s: 1.0.4
    • Component/s: XML code generator
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: PC
    • Bugzilla Id:
      1575
    • Testcase included:
      yes
    • Number of attachments :
      4

      Description

      When generating source from a schema that has the type "xsd:base64Binary" the
      equals method generated by the SourceGenerator generates a xxx.equals( yyy )
      where xxx and yyy are of type byte[], from the "xsd:base64Binary" schema type.

      This will always be false, it should be Arrays.equals( xxx, yyy ), or something
      similar.

      Test case details:
      1) SourceGenerator command: java cp .;castor-0.9.5.3.jar;castor-0.9.5.3
      xml.jar;xml-apis.jar;xercesImpl.jar org.exolab.castor.builder.SourceGenerator -
      i "D:\backup\d_drive\Portals\WSRP\castor-bug.xsd" -types j2 -nomarshall

      Attachments to be added:
      -Example schema
      -castorbuilder.properties

      1. castor-716.diff
        14 kB
        Edward Kuns
      2. castor-bug-1575.xsd
        0.7 kB
        derek.sayeau
      3. castor-bug-1575-2.xsd
        0.4 kB
        derek.sayeau
      4. castorbuilder.properties
        2 kB
        derek.sayeau

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Edward Kuns
              Reporter:
              derek.sayeau
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: