I can not reproduce the issue through your code( No error occurred as follows )...
``` D:\_TEMP\qqqq>groovy -v Groovy Version: 3.0.0-rc-2 JVM: 11.0.3 Vendor: Amazon.com Inc. OS: Windows 10 D:\_TEMP\qqqq>java -Xverify:none -jar D:\_DEV\Groovy\groovy\lib\groovy-3.0.0-rc-2.jar -e="new File('.').toPath()" D:\_TEMP\qqqq> D:\_TEMP\qqqq> ``` Cheers, Daniel.Sun ----- Apache Groovy committer & PMC member Blog: http://blog.sunlan.me Twitter: @daniel_sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html