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

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

Agile BoardAttach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.10, 2.4.5
    • 2.4.6
    • JSON

    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            iNikem Nikita Salnikov-Tarnovski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment