method() on alias calls wrong super (but not in our opinion)
------------------------------------------------------------

                 Key: JRUBY-1191
                 URL: http://jira.codehaus.org/browse/JRUBY-1191
             Project: JRuby
          Issue Type: Bug
          Components: Interpreter
    Affects Versions: JRuby 1.0.0
            Reporter: Thomas E Enebo


Here is reduced testcase:

{noformat}
# Test weird likely-a-bug where method() will repurpose where super goes to
class Foo222
  def a; 'a'; end
  def b; 'b'; end
end

class Bar222 < Foo222
  def a; super; end
  alias b a
end

test_equal('a', Bar222.new.b)
test_equal('b', Bar222.new.method(:b).call)
{noformat}


Charlie sent a message to ruby-core on this since this seems like a bug, but we 
will patch this for now since the fix is pretty simple and we want to be 
compatible.

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