groovy 1.0-beta-10 リリース
- http://dist.codehaus.org/groovy/distributions/
- http://jira.codehaus.org/secure/BrowseProject.jspa?id=10242&report=changelog
- エラー時にスクリプトの行番号がでるようになったのはうれしい。
- assert "\\\\" == '\\\\' がとおるようになった。
- jsrのコンパイラーが追加された。groovy-core の testフォルダは classic用 で test-new が新しいコンパイル(jsr)用のテストクラスなのでどこがちがっているのか参考になる。ドキュメントはこちら。http://docs.codehaus.org/display/GROOVY/Migration+From+Classic+to+JSR+syntax
e:\>groovysh Lets get Groovy! ================ Version: 1.0-beta-10 JVM: 1.4.2_05-b04 Type 'exit' to terminate the shell Type 'help' for command help Type 'go' to execute the statements groovy> x = 123 groovy> println "x = $x" groovy> println "x = ${x}" groovy> go x = $x x = 123 e:\>set JAVA_OPTS=-Dgroovy.jsr=true e:\>groovysh Lets get Groovy! ================ Version: 1.0-beta-10 JVM: 1.4.2_05-b04 Type 'exit' to terminate the shell Type 'help' for command help Type 'go' to execute the statements groovy> x = 123 groovy> println "x = $x" groovy> println "x = ${x}" groovy> go x = 123 x = 123
そろそろスクリプトはJSRバージョンでかこうかな。