Forum: JRuby unable to set __persistent__

Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2012-05-23 18:22
Hello all.
When I attempt to run the demos here:

I get this:

jruby test.rb
JavaProxy$INVOKER$i$1$0$persistent.gen:-1:in `call':
java.lang.ClassCastException: org.jruby.RubyClass cannot be cast to
        from `cacheAndCall'
        from `call'
        from test.rb:9:in `__file__'
        from test.rb:-1:in `load'
        from `runScript'
        from `runScript'
        from `runNormally'
        from `runFromMain'
        from `doRunFromMain'
        from `internalRun'
        from `run'
        from `run'
        from `main'

(hard exit)

is this expected?

jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-17 c550df6) (Java
HotSpot(TM) Client VM 1.6.0_32) [Windows 7-x86-java]
F1d37642fdaa1662ff46e4c65731e9ab?d=identicon&s=25 Charles Nutter (headius)
on 2012-06-08 21:44
(Received via mailing list)
Reported and fixed on master.
Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2012-06-21 01:27
Appears fixed with jruby (ruby-1.9.3-p203)
(2012-06-14 fb4c77f)
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.