I tried my local JDK 1.8.0_222(Corretto) with your code, JVM crashed.. Let me download zulu JDK 1.8 and have a try...
hs_err_pid19328.log <http://groovy.329449.n5.nabble.com/file/t340716/hs_err_pid19328.log> D:\_TEMP\qqqq>groovy -v Groovy Version: 3.0.0-rc-2 JVM: 1.8.0_222 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="println new File('.').toPath()" =============== DEBUG MESSAGE: illegal bytecode sequence - method not verified ================ # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_PRIV_INSTRUCTION (0xc0000096) at pc=0x00000000032056ed, pid=19328, tid=0x00000000000057d4 # # JRE version: OpenJDK Runtime Environment (8.0_222-b10) (build 1.8.0_222-b10) # Java VM: OpenJDK 64-Bit Server VM (25.222-b10 mixed mode windows-amd64 compressed oops) # Problematic frame: # j org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.<clinit>()V+-1034620128 # # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows # # An error report file with more information is saved as: # D:\_TEMP\qqqq\hs_err_pid19328.log # # If you would like to submit a bug report, please visit: # # 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