I tried zulu JDK 1.8.0_232, JVM crashed too... I think you find a bug of JVM
;-)
P.S. the code runs well if no `-Xverify:none` applied.
D:\_TEMP\qqqq>java -version
openjdk version "1.8.0_232"
OpenJDK Runtime Environment (Zulu 8.42.0.23-CA-win64) (build 1.8.0_232-b18)
OpenJDK 64-Bit Server VM (Zulu 8.42.0.23-CA-win64) (build 25.232-b18, mixed
mode)
D:\_TEMP\qqqq>java -Xverify:none -jar
D:\_DEV\Groovy\groovy\lib\groovy-3.0.0-rc-2.jar -e="new File('.').toPath()"
=============== DEBUG MESSAGE: unimplemented bytecode ================
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_PRIV_INSTRUCTION (0xc0000096) at pc=0x00000000034d5776,
pid=21040, tid=0x00000000000024cc
#
# JRE version: OpenJDK Runtime Environment (Zulu 8.42.0.23-CA-win64)
(8.0_232-b18) (build 1.8.0_232-b18)
# Java VM: OpenJDK 64-Bit Server VM (25.232-b18 mixed mode windows-amd64
compressed oops)
# Problematic frame:
# j org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.<clinit>()V+0
#
# 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_pid21040.log
#
# If you would like to submit a bug report, please visit:
# http://www.azulsystems.com/support/
#
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