Fixity fixed! When I modified the includeModule code to recursively
include other modules (allowing modules to be searched in correct
order), there was one other change I should have made. When including
before, it iteratively included all parents. In addition to screwing
up the order, this allowed
Here's #4.
--cut---
require 'rexml/document'
XML = <<-EOF
EOF
doc = REXML::Document.new(XML)
REXML::XPath.match(doc, "/foo//@uri").first.to_s
--end--
On Monday 06 March 2006 12:46 pm, Charles O Nutter wrote:
> Fixity fixed! When I modified the includeModule code to recursively
> include othe
That one doesn't blow up for me...should it?
On 3/6/06, David Corbin <[EMAIL PROTECTED]> wrote:
> Here's #4.
> --cut---
> require 'rexml/document'
>
> XML = <<-EOF
>
>
>
> EOF
>
> doc = REXML::Document.new(XML)
> REXML::XPath.match(doc, "/foo//@uri").first.to_s
> --end--
> On Monday 06 March
---begin---
XML = 'xyz'
def fooMethod
XML = foo.bar
end
---end---
this one is for Tom. A NullPointerException while parsing this.
---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applicati
I am getting:
./lib/ruby/1.8/rexml/xpath_parser.rb:20:in `method_missing': private method
'dclone' called for "":String (NoMethodError)
Is that what you are getting David?
-Tom
On Mon, 06 Mar 2006, Charles O Nutter defenestrated me:
> That one doesn't blow up for me...should it?
>
> On 3
On Monday 06 March 2006 09:00 pm, Charles O Nutter wrote:
> That one doesn't blow up for me...should it?
>
It does for me:
/usr/lib/ruby/1.8/rexml/xpath_parser.rb:20:in `method_missing': undefined
method `dclone' for "":String (NoMethodError)
from /usr/lib/ruby/1.8/rexml/xpath_parser.rb:2
That's a very good though...I think I'm still running on 1.8.2 libs
here. I should probably upgrade, but perhaps they busted something.
On 3/6/06, David Corbin <[EMAIL PROTECTED]> wrote:
> I suppose it's possible that it's not a *true* regression, and that it's a
> failure introduce by the Ruby 1.
Confirmed...I'll let Tom enjoy this one :)
On 3/6/06, David Corbin <[EMAIL PROTECTED]> wrote:
> ---begin---
> XML = 'xyz'
>
> def fooMethod
> XML = foo.bar
> end
> ---end---
>
> this one is for Tom. A NullPointerException while parsing this.
>
>
> ---
In xpath_parser.rb:
class Object
def dclone
clone
end
end
In 1.8.4 rexml it appears that the String "" is not seeing
dclone def'd in Object. Looks like a simple test case should
be possible.
-Tom
On Mon, 06 Mar 2006, Charles O Nutter defenestrated me:
> That's a very good though...I
Fixed.
-Tom
On Mon, 06 Mar 2006, David Corbin defenestrated me:
> ---begin---
> XML = 'xyz'
>
> def fooMethod
> XML = foo.bar
> end
> ---end---
>
> this one is for Tom. A NullPointerException while parsing this.
>
>
> ---
> Thi
And fixed! It was defaulting methods found in a "class Object" section
to be PRIVATE, but Ruby code did not appear to do that.
- Charlie
On 3/6/06, Thomas E Enebo <[EMAIL PROTECTED]> wrote:
> In xpath_parser.rb:
>
> class Object
> def dclone
> clone
> end
> end
>
> In 1.8.4 rexml it app
11 matches
Mail list logo