I noticed if I run this code, with trunk:
require 'java'
class JFrameDescendant < javax.swing.JFrame
def initialize
@panel = 3
end
end
JFrameDescendant.new
It results in this message:
repro.rb:1 warning: instance vars on non-persistent Java type
JFrameDescendant (http://wiki.jruby.org/Persistence)
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?
-roger-
on 2012-05-23 18:15
on 2012-06-12 21:59
Charles Nutter wrote in post #1063751: > Hmm interesting. I think you're right. Toss this into a bug. http://jira.codehaus.org/browse/JRUBY-6721
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.