castor
  1. castor
  2. CASTOR-2834

Make use of CycleBreaker configurable

    Details

    • Type: New Feature New Feature
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.1
    • Fix Version/s: 1.3.2
    • Component/s: XML code generator
    • Labels:
      None
    • Number of attachments :
      3

      Description

      When hashcode and equals methods are generated from an XSD, they use CycleBreaker class methods. This class is still buggy creates a number of issues especially in multithreaded applications (see http://jira.codehaus.org/browse/CASTOR-2746).

      It should be absolutely necessary to provide an option to enable/disable the use of this class during Castor objects generation.

      1. c2834.20090906.patch
        4 kB
        Werner Guttmann
      2. ConfigurableCycleBreaker.patch
        10 kB
        Torsten Juergeleit
      3. SourceFactory.patch
        8 kB
        Torsten Juergeleit

        Issue Links

          Activity

          Hide
          Werner Guttmann added a comment -

          It's revision 6968 of SourceFactory that serves as base.

          Show
          Werner Guttmann added a comment - It's revision 6968 of SourceFactory that serves as base.
          Hide
          Werner Guttmann added a comment -

          First draft of a patch that introduces a new property to BuilderConfiguration, and highlights its use in SourceFactory.

          Show
          Werner Guttmann added a comment - First draft of a patch that introduces a new property to BuilderConfiguration , and highlights its use in SourceFactory .
          Hide
          Torsten Juergeleit added a comment -

          This patch provides all modifications necessary for optionally disabling generation of CycleBreaker code in "codegen/src/main/java/org/exolab/castor/builder/factory/SourceFactory.java". These modifications were retrieved from commit #7132.

          Show
          Torsten Juergeleit added a comment - This patch provides all modifications necessary for optionally disabling generation of CycleBreaker code in "codegen/src/main/java/org/exolab/castor/builder/factory/SourceFactory.java". These modifications were retrieved from commit #7132 .
          Hide
          Werner Guttmann added a comment -

          Torsten, could you please attach a patch that includes changes to castorbuilder.properties et alias ?

          Show
          Werner Guttmann added a comment - Torsten, could you please attach a patch that includes changes to castorbuilder.properties et alias ?
          Hide
          Torsten Juergeleit added a comment -

          Attached consolidated patch

          Show
          Torsten Juergeleit added a comment - Attached consolidated patch

            People

            • Assignee:
              Werner Guttmann
              Reporter:
              Jean-Marc Borer
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: