Forum: JRuby "non-persistent Java type" warning thrown on java class descendant expected?

Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2012-05-23 18:15
I noticed if I run this code, with trunk:

require 'java'

class JFrameDescendant < javax.swing.JFrame

  def initialize
     @panel = 3

It results in this message:

repro.rb:1 warning: instance vars on non-persistent Java type
JFrameDescendant (

However, since I'm actually subclassing a java class with a pure ruby
one, shouldn't I be save to save instance variables? Is this warning
message expected?
F1d37642fdaa1662ff46e4c65731e9ab?d=identicon&s=25 Charles Nutter (headius)
on 2012-06-08 21:45
(Received via mailing list)
Hmm interesting. I think you're right. Toss this into a bug.
Bec38d63650c8912b6ba9b557fb953b9?d=identicon&s=25 Roger Pack (rogerdpack)
on 2012-06-12 21:59
Charles Nutter wrote in post #1063751:
> Hmm interesting. I think you're right. Toss this into a bug.
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.