Can you try on java 8 (Azul 1.8 202 in my case, it is available at https://cdn.azul.com/zulu/bin/) please?
FYI using azul 11 works for me too so it is likely linked to the JVM version Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> Le ven. 13 déc. 2019 à 10:35, Daniel.Sun <sun...@apache.org> a écrit : > 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 >