#24 new
Philipp Pirozhkov

class method call crashes when there's a method with the same name but different number of args

Reported by Philipp Pirozhkov | February 28th, 2009 @ 08:07 AM

cannot find anything in common to that


class Controller
  def render(filename)
    render(filename, {})

  def render(filename, bindings)
    render(filename, bindings, [])

  def render(filename, bindings, handlers)
    ~html

>> load('issue.re')
=> Controller
>> Controller().render('foo', {}, [])
=> ~html
>> Controller().render('foo', {})
*** ERROR: Shell process terminated! (^G to start new job) ***

=ERROR REPORT==== 28-Feb-2009::18:02:03 ===
                                           ** Generic server <0.56.0> terminating 
                                                                                  ** Last message in was {render,
                                                                                                                                            [{string,<<"foo">>},
                                                 {dict,
                                                                                       {dict,0,16,16,8,80,48,
                                                                                                                                                 {[],[],[],[],[],[],[],[],[],[],[],[],[],
                                                                                   [],[],[]},
                                                                                                                                 {{[],[],[],[],[],[],[],[],[],[],[],[],[],
                                                                     [],[],[]}}}}]}
                                                                                   ** When Server state == {dict,0,16,16,8,80,48,
                                                                                                                                                               {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                                                                                 []},
                                                                                                                                   {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                                                       []}}}
                                                                            ** Reason for termination == 
                                                                                                         ** {function_clause,[{'Controller','__re_method_render',3},
                                              {'Controller',handle_call,3},
                                                                                                {reia_dispatch,funcall,3}]}

class Controller
  def render(filename)
    ~a

  def render(filename, bindings)
    ~html

>> load('issue.re')
=> Controller
>> Controller().render(~a)
=> ~a
>> Controller().render(~a, ~b)
*** ERROR: Shell process terminated! (^G to start new job) ***

=ERROR REPORT==== 28-Feb-2009::18:08:09 ===
                                           ** Generic server <0.56.0> terminating 
                                                                                  ** Last message in was {render,[a,b]}
                                                                                                                       ** When Server state == {dict,0,16,16,8,80,48,
                                                        {[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                                                                                                                     []},
                                                                                                                                                                       {{[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],
                                                                                                           []}}}
                                                                                                                ** Reason for termination == 
  ** {function_clause,[{'Controller','__re_method_render',3},
                                                                                  {'Controller',handle_call,3},
                                                                                                                                    {reia_dispatch,funcall,3}]}

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Reia a dynamic scripting language for the Erlang virtual machine (BEAM)

People watching this ticket

Tags

Pages