Wrong object class for subclass of Proc instantiated with Proc as an argument
-----------------------------------------------------------------------------

                 Key: JRUBY-5103
                 URL: http://jira.codehaus.org/browse/JRUBY-5103
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.5.2
         Environment: MacOSX 10.6.4

java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
            Reporter: Michael Rykov
         Attachments: procchild.rb

When I create a subclass of Proc and then instantiate it w/ another Proc, the 
class of the object is incorrect.  The example code file is attached.  This bug 
prevents the use of the latest Dragonfly gem (0.7.6).

jRuby(master) result:
{code}
$ jruby -v
jruby 1.5.0dev (ruby 1.8.7 patchlevel 174) (2010-09-26 e2878eb) (Java 
HotSpot(TM) 64-Bit Server VM 1.6.0_20) [x86_64-java]
$ jruby ./procchild.rb 
ProcChild
true
Proc
false
{code} 

jRuby(1.5.2) result:
{code} 
$ jruby -v
jruby 1.5.2 (ruby 1.8.7 patchlevel 249) (2010-08-20 1c5e29d) (Java HotSpot(TM) 
64-Bit Server VM 1.6.0_20) [x86_64-java]
$ jruby ./procchild.rb 
ProcChild
true
Proc
false
{code} 

MRI result:
{code} 
$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
$ ruby ./procchild.rb 
ProcChild
true
ProcChild
true
{code} 


-- 
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