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

byte[] to Byte[] coercions behave unexpectedly in both directions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-3
    • 1.0-JSR-4
    • None
    • None

    Description

      data = []
      for (i in 0..255)

      { data << i }

      store = (data as Byte[]).encodeBase64().toString()

      restored = store.decodeBase64()
      // assert restored == data as byte[] // todo: not working!
      -> Type conflict
      the byte[] to Byte[] coercions behave unexpectedly in both directions

      Attachments

        Activity

          People

            tug John Wilson
            codevise Dierk König
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: