bitescript
bitescript copied to clipboard
IllegalArgumentException under Java 1.8
Using a fresh RVM-installed JRuby on a fresh JDK 1.8 installation on OS X Mavericks, I received this error:
➜ Code mirah fib.mirah
java/lang/reflect/Constructor.java:408:in `newInstance': java.lang.IllegalArgumentException
from /Users/jamie/.rvm/gems/jruby-1.7.13/gems/bitescript-0.1.4/lib/bitescript/mirror.rb:208:in `load'
Full backtrace here. I'm posting it here rather than on the Mirah project because the exception happened from within a bitescript file; I hope that's okay.
The contents of fib.mirah don't matter — it gave the same exception regardless of what it had in it. It didn't even work with -e.
Relevant versions:
➜ Code uname -a
Darwin husker.home 13.2.0 Darwin Kernel Version 13.2.0: Thu Apr 17 23:03:13 PDT 2014; root:xnu-2422.100.13~1/RELEASE_X86_64 x86_64
➜ Code java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)
➜ Code jruby -v
jruby 1.7.13 (1.9.3p392) 2014-06-24 43f133c on Java HotSpot(TM) 64-Bit Server VM 1.8.0_05-b13 +indy [darwin-x86_64]
➜ Code mirah -v
Mirah v0.1.2
It's fine to post it here. The next release of Mirah won't be using bitescript anymore as it'll be completely self hosted.
I'm guessing it's fairly straightforward, but I don't have much time to look at it right now.