JiBX
  1. JiBX
  2. JIBX-176

verbose flag to jibx compile causes stack overflow

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: JiBX 1.1.5
    • Fix Version/s: JiBX 1.1.6
    • Component/s: None
    • Labels:
      None
    • Environment:
      Mac OSX 10.4.10, ant 1.7.0, apple java: Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_07-164)
    • Number of attachments :
      1

      Description

      The bindings compile ok without the -v flag.

      Could possibly be due to recursive structure in schema?

        Activity

        Hide
        Dennis Sosnoski added a comment -

        I slipped up and shipped 1.1.5 with some debug code included which can result in loops when using recursive <mapping>s. I'll correct this in the upcoming 1.1.6. If you want to fix this in your own copy, edit build/src/org/jibx/binding/def/BindingDefinition.java and comment out the following lines near the start of the generateCode method (right below the comment "// disabled because of potential recursion issues" - ):

        if (verbose)

        { System.out.println("After linking view of binding " + m_name + ':'); print(); }

        then rebuild by typing "ant" at a console in the build directory.

        Show
        Dennis Sosnoski added a comment - I slipped up and shipped 1.1.5 with some debug code included which can result in loops when using recursive <mapping>s. I'll correct this in the upcoming 1.1.6. If you want to fix this in your own copy, edit build/src/org/jibx/binding/def/BindingDefinition.java and comment out the following lines near the start of the generateCode method (right below the comment "// disabled because of potential recursion issues" - ): if (verbose) { System.out.println("After linking view of binding " + m_name + ':'); print(); } then rebuild by typing "ant" at a console in the build directory.
        Dennis Sosnoski made changes -
        Field Original Value New Value
        Assignee Dennis Sosnoski [ dsosnoski ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s JiBX 1.1.6 [ 14068 ]
        Hide
        Dennis Sosnoski added a comment -

        Fixed in 1.1.6 release

        Show
        Dennis Sosnoski added a comment - Fixed in 1.1.6 release
        Dennis Sosnoski made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Dennis Sosnoski
            Reporter:
            Linus Kamb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: