groovy
  1. groovy
  2. GROOVY-4654

groovy.transform.ToString annotation does not handle cycles

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8-beta-3
    • Fix Version/s: None
    • Component/s: groovy-jdk
    • Labels:
    • Number of attachments :
      3

      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)

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

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Travis
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: