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:
https://github.com/jruby/jruby/wiki/Persistence

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
org.jruby.java.proxies.JavaProxy
        from CachingCallSite.java:312:in `cacheAndCall'
        from CachingCallSite.java:169:in `call'
        from test.rb:9:in `__file__'
        from test.rb:-1:in `load'
        from Ruby.java:778:in `runScript'
        from Ruby.java:771:in `runScript'
        from Ruby.java:648:in `runNormally'
        from Ruby.java:497:in `runFromMain'
        from Main.java:375:in `doRunFromMain'
        from Main.java:264:in `internalRun'
        from Main.java:230:in `run'
        from Main.java:214:in `run'
        from Main.java:194:in `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 1.7.0.preview2.dev (ruby-1.9.3-p203)
(2012-06-14 fb4c77f)
Thanks!
-roger-
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.