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

groovy.json.internal.FastStringUtils.StringImplementation#toCharArray fails on jdk9

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.10, 2.4.5
    • Fix Version/s: 2.4.6
    • Component/s: JSON
    • Labels:

      Description

      Trying to build my application on recent jdk9 build I got the following exception:

      java.lang.ClassCastException: [B cannot be cast to [C
      at groovy.json.internal.FastStringUtils$StringImplementation$1.toCharArray(FastStringUtils.java:88)
      at groovy.json.internal.FastStringUtils.toCharArray(FastStringUtils.java:175)
      at groovy.json.internal.BaseJsonParser.parse(BaseJsonParser.java:103)
      at groovy.json.JsonSlurper.parseText(JsonSlurper.java:208)

      I believe that jdk9 has changed the inner representation of Strings (see http://openjdk.java.net/jeps/254).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              iNikem Nikita Salnikov-Tarnovski
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: