Hi guys.
It appears the ClassCastException listed in Will's post (I get it too)
is a result of the a master merge commit:
* ext/nokogiri/xml_text.c (new) fixing segv when called with non-
document
http://github.com/tenderlove/nokogiri/commit/07351373762a6d9f67734c5cc8c3e89e84988ccd
The corresponding fix on the Java side would go in ext/java/nokogiri/
XmlTest.java like so:
public static IRubyObject rbNew(ThreadContext context, IRubyObject
cls, IRubyObject text, IRubyObject xNode) {
XmlNode xmlNode = (XmlNode)xNode;
XmlDocument xmlDoc = (XmlDocument)xmlNode.document(context);
Document document = xmlDoc.getDocument();
Node node = document.createTextNode(text.convertToString
().asJavaString());
return XmlNode.constructNode(context.getRuntime(), node);
}
What's the preferred way for me to submit this fix? Should I fork and
submit a pull request or could I be added as a collaborator?
-marc
On Dec 2, 1:21 am, Will Sargent <
will.sarg...@gmail.com> wrote:
> On Tue, Dec 1, 2009 at 10:11 AM, Aaron Patterson
>
>
>
>
>
> <
aaron.patter...@gmail.com> wrote:
> > On Mon, Nov 30, 2009 at 3:02 PM, Nick Sieger <
nicksie...@gmail.com> wrote:
> >> Just wondering what the status is of the pureJavacode that Sergio is
> >> working on. I realize I could probably dig up this information but
> >> perhaps it would be better to recap the info in this thread for the
> >> benefit of those coming looking to help. Where is the code, and what
> >> is remaining to be implemented?
>
> > I've merged master back in to thejavabranch. If you update, then
> > run these commands:
>
> > $ jruby -I lib -S rakejava:spec
> > $ jruby -I lib -S rake test
>
> > That will run the tests. All that remains is getting the E's and F's
> > to turn in to dots.
>
> Excellent. Up and running.
>
> ..............................E........................F................... ....E.FE....FFFEFEEEEEEEEEEEEEE............................E..E.EEEEEEE...E EEEEEEEEEEEEEEEEEEEEEEEEE..EE....EE.EEEFEFEE.E.EE.F........FFF.E.EFEEE.EEEE EEEEEEEEEFEEEEEE.FEEEEEFFFEEFEEEEEEEEEEE....EEEEEEEEEEEEEEEEEEEEEEEEEE..... ..FFFFFFFFFFFF..EE........EEEF...F........E.................E.............. E.E....EEEE.E...EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE..E................ ............E....E...F..E....E......EEEE..E...EEEE.E.....................EE EEEEEEEEEEEEEE.EEEE.E...............E..................................E... FFE.....EE.E........................EFEF..................EF..XmlText.java: 18:in