groovy
  1. groovy
  2. GROOVY-5107

java.util.UUID support in JsonBuilder

    Details

    • Type: Wish Wish
    • Status: Closed Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.9-beta-4, 2.0-beta-1
    • Fix Version/s: 1.8.4, 2.0-beta-1
    • Component/s: JSON
    • Labels:
    • Testcase included:
      yes
    • Number of attachments :
      0

      Description

      Test.groovy
      uuid = '571afb98-3d0d-4dec-b373-8f8d51849266'
      json = new groovy.json.JsonBuilder(UUID.fromString(uuid))
      assert json.toString() == "\"${uuid}\""
      
      Output
      assert json.toString() == "\"${uuid}\""
             |    |          |      |
             |    |          false  571afb98-3d0d-4dec-b373-8f8d51849266
             |    {"leastSignificantBits":-5515907281477922202,"mostSignificantBits":6276605661972090348}
             {"leastSignificantBits":-5515907281477922202,"mostSignificantBits":6276605661972090348}
      

        Activity

        CÚdric Champeau made changes -
        Field Original Value New Value
        Assignee Cedric Champeau [ melix ]
        CÚdric Champeau made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.9-beta-5 [ 17925 ]
        Fix Version/s 1.8.4 [ 17852 ]
        Resolution Fixed [ 1 ]
        Paul King made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            CÚdric Champeau
            Reporter:
            Jonny Heggheim
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: