Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
this snippet:
require 'java'
class JFrameDescendant < javax.swing.JFrame
def initialize
@panel = 3
end
end
JFrameDescendant.new
Results in this message:
repro.rb:1 warning: instance vars on non-persistent Java type JFrameDescendant (http://wiki.jruby.org/Persistence)
Which may not be accurate, since the descendant is pure ruby, so should be happy with instance vars, shouldn't it?
Yeah, this is extraneous. The link between the concrete Java class and the Ruby class is hard and it should be possible to safely associate instance variables in that scenario. I'll poke around.