Initializing structs including Java interfaces crashes JRuby
------------------------------------------------------------

                 Key: JRUBY-2490
                 URL: http://jira.codehaus.org/browse/JRUBY-2490
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1.1
         Environment: OS X 10.4.11, JRuby rev 6623, Java: Java HotSpot(TM) 
Client VM (build 1.5.0_13-121, mixed mode, sharing)
            Reporter: David Yip


The following code segment crashes JRuby (produces a NullPointerException in 
RubyStruct.java:311):

require 'java'

class Boom < Struct.new(:foo, :bar)
  include java.lang.Comparable
  
  def compare_to(o)
    0
  end
end

puts Boom.new(2,3).foo



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to