Fiddle faddle!On 3/16/06, David Corbin <[EMAIL PROTECTED]> wrote:
On Thursday 16 March 2006 11:17 am, Charles O Nutter wrote:> I suppose it's good to see that we're entering the realm not of> regressions, but of oddities in new functionality. This issue and the> lazy-loading methods issue are not r
On Thursday 16 March 2006 11:17 am, Charles O Nutter wrote:
> I suppose it's good to see that we're entering the realm not of
> regressions, but of oddities in new functionality. This issue and the
> lazy-loading methods issue are not really regressions in my mind, but newer
> areas needing improve
Here's a simple script to compare Ruby and JRuby methods for various types:thing_to_compare = ARGV[0]method_type = ARGV[1]puts "Comparing JRuby #{thing_to_compare} #{method_type} methods to Ruby"
ruby_methods = eval `ruby -e "p #{thing_to_compare}.#{method_type}_methods.sort`jruby_methods = eval "#
I think it comes down to this: module methods should show up in the public_instance_methods of the module.C:\rails>jruby -e "p ::Kernel.public_instance_methods.sort"[]C:\rails>ruby -e "p ::
Kernel.public_instance_methods.sort"["==", "===", "=~", "__id__", "__send__", "class", "clone", "display", "d
I narrowed down my current Rails issue to something wrong with how we handle self and send in the context of DelegateClass. I have not dug deeper than this yet.The following succeeded in Ruby, fails in JRuby:
require 'delegate'class Fooendclass Bar < DelegateClass(Foo) def bar puts "bar" end
I suppose it's good to see that we're entering the realm not of regressions, but of oddities in new functionality. This issue and the lazy-loading methods issue are not really regressions in my mind, but newer areas needing improvement or refinement. I think it's a valid distinction between that an
On Thu, 16 Mar 2006, David Corbin defenestrated me:
> This might be related to #7, but I don't think so. (And yes, it is stupid, but
> it's much more complex than this in our code).
>
> ---cut---
> require 'java'
> include_class 'java.util.ArrayList'
> include_class 'java.util.ArrayList'
> ---end
This might be related to #7, but I don't think so. (And yes, it is stupid, but
it's much more complex than this in our code).
---cut---
require 'java'
include_class 'java.util.ArrayList'
include_class 'java.util.ArrayList'
---end---
---
This S