Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6.7, JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.7.0.RC1
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
Trying my code with -X+C I got this weird error.
It does not seems to be due to String#rpartition, but rather because of a bad scope.
Steps to reproduce:
$ git clone git://github.com/jruby/perfer.git
$ bundle
$ JRUBY_OPTS="-X+C -Xbacktrace.style=raw" bin/perfer run examples/file_stat.rb
The output I got is in this gist: https://gist.github.com/f821b76e79c7d34e84bd
Just to add some notes:
pos = regex.search19(context, this, value.getRealSize(), true); if (pos < 0) return rpartitionMismatch(runtime); sep = (RubyString)RubyRegexp.nth_match(0, context.getCurrentScope().getBackRef(runtime));The ClassCast is this last line, but it should not class cast since pos >= 0. Benoit is correct that this must be some bad scope setup. Plus it works in mixed + interp modes.