Mailinglist Archive: opensuse-bugs (3135 mails)
| < Previous | Next > |
[Bug 705425] ruby-bindings: YaST crash during the call of ruby method
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Mon, 18 Jul 2011 10:05:40 +0000
- Message-id: <20110718100540.800E0245523@molor.provo.novell.com>
https://bugzilla.novell.com/show_bug.cgi?id=705425
https://bugzilla.novell.com/show_bug.cgi?id=705425#c13
--- Comment #13 from Duncan Mac-Vicar <dmacvicar@xxxxxxxxxx> 2011-07-18
10:05:39 UTC ---
I discussed this bug with Jiri during the workshop. The reason it happens is
because the bindings use Method#arity when it should probably use
Method#parameters (as detailed in the ruby-doc).
Method#arity returns negative numbers when there are optional parameters and
this causes the crash. So YCP should always call ruby passing _all_ parameters
of a ruby method with optional arguments.
Sadly, the advertised Merthod#parameters
(http://www.ruby-doc.org/core/classes/Method.html#M001075) does not seem to be
available in the interpreter.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |