Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 1.6-rc-2, 1.6-rc-3
-
Fix Version/s: 1.6.1, 1.5.8, 1.7-beta-1
-
Component/s: None
-
Labels:None
-
Testcase included:yes
-
Number of attachments :
Description
Execute the following groovy script:
def a = 1
def b = "two"
println "$
$
{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.
Forgot the stack trace:
Caught: java.lang.NullPointerException
at test.run(test.groovy:3)