hpricot is busted when truncating multibyte strings
---------------------------------------------------
Key: JRUBY-3911
URL: http://jira.codehaus.org/browse/JRUBY-3911
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.4
Environment: MacOS 10.5.6, jruby 1.4, hpricot head from
http://github.com/whymirror/hpricot (0.8.1-ish)
Reporter: Josh Matthews
Assignee: Thomas E Enebo
With the test at http://gist.github.com/174058, JRuby throws the following
exception:
RubyBasicObject.java:1058:in `getVariableList': java.lang.ClassCastException:
[Lorg.jruby.runtime.builtin.IRubyObject; cannot be cast to
org.jruby.runtime.builtin.IRubyObject
from RubyBasicObject.java:727:in `initCopy'
from RubyBasicObject.java:712:in `dup'
from RubyObject.java:734:in `dup'
from org/jruby/RubyObject$i_method_0_0$RUBYINVOKER$dup.gen:-1:in `call'
from CachingCallSite.java:258:in `cacheAndCall'
from CachingCallSite.java:77:in `call'
from hpricot-test.rb:8:in `method__2$RUBY$truncate'
from hpricot_minus_test#truncate:-1:in `call'
from hpricot_minus_test#truncate:-1:in `call'
from CachingCallSite.java:278:in `cacheAndCall'
from CachingCallSite.java:117:in `call'
from hpricot-test.rb:24:in `__file__'
from hpricot-test.rb:-1:in `load'
from Ruby.java:592:in `runScript'
from Ruby.java:514:in `runNormally'
from Ruby.java:360:in `runFromMain'
from Main.java:268:in `run'
from Main.java:113:in `run'
from Main.java:97:in `main'
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email