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

"anystring" as byte[] throws java.lang.NumberFormatException: For input string: "anystring"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.7
    • 1.7.8, 1.8-rc-1
    • groovy-jdk
    • None
    • Groovy 1.7.7
      Ubuntu 10.10

    Description

      For some reason, since Groovy 1.7.5 I can no longer coerce a String (either " or ') to a byte[].

      I instead get java.lang.NumberFormatException: For input string: "xxx"

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            wirah Antony Jones
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: