Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-4654

groovy.transform.ToString annotation does not handle cycles

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8-beta-3
    • None
    • groovy-jdk

    Description

      The groovy.transform.ToString AST transformation does not handle object graphs with cycles. See the attached junit tests. This is a pretty serious issue because these object structures are common with some frameworks (like orm tools)

      Attachments

        1. ToStringCycleTest.groovy
          0.7 kB
          Travis Schneeberger
        2. Foo.groovy
          0.2 kB
          Travis Schneeberger
        3. Bar.groovy
          0.2 kB
          Travis Schneeberger

        Activity

          People

            Unassigned Unassigned
            leo.herbie Travis Schneeberger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: