Closed gregopet closed 2 years ago
Hey @gregopet!
Thanks for preparing this lovely code! However, I have the following issue when trying to run your code
$ groovy -v
Groovy Version: 3.0.7 JVM: 17.0.1 Vendor: Azul Systems, Inc. OS: Mac OS X
Caught: BUG! exception in phase 'semantic analysis' in source unit '/Users/otobrglez/Projects/compression-puzzle/src/groovy/compress.groovy' Unsupported class file major version 61
BUG! exception in phase 'semantic analysis' in source unit '/Users/otobrglez/Projects/compression-puzzle/src/groovy/compress.groovy' Unsupported class file major version 61
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 61
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:189)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:170)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:156)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:277)
... 3 more
Any ideas on how to approach this?
Regards!
Never mind. It looks like an issue with incompatible JDK. I've ended up using Docker and Groovy image. It works like a charm!
Thank you sincerely for your effort and I hope that you'll take some time to check other solutions and perhaps gain some wisdom from em'.
Sincerly,
Awesome! :smile:
Groovy has more than one form that could be considered "idiomatic", this one is my favorite (for now :stuck_out_tongue: )