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

GString.split() broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.6-rc-2, 1.6-rc-3
    • 1.6.1, 1.5.8, 1.7-beta-1
    • None
    • None

    Description

      Execute the following groovy script:

      def a = 1
      def b = "two"
      println "${a} ${b} c".split()

      using

      java -ea -cp lib/groovy-all-1.6-RC-3.jar groovy.lang.GroovyShell test.groovy

      gives a NullPointerException with groovy-all-1.6-RC-2.jar or groovy-all-1.6-RC-3.jar, runs fine with groovy-all-1.5.7.jar.

      Attachments

        1. mylyn-context.zip
          5 kB
          Chanwit Kaewkasi
        2. 3359.diff
          1 kB
          Chanwit Kaewkasi

        Activity

          People

            paulk Paul King
            jamcdonald John A McDonald
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: