Discussion:
[jruby-user] double stack traces with rewrite.java.trace enabled
Peter Ryan
2014-05-14 19:05:48 UTC
Permalink
I was looking at an example for the rewrite.java.trace:

https://gist.github.com/headius/bea2377f81c6e4868ff3

The example command is:

jruby -Xrewrite.java.trace=true -X-C run_blah.rb

This works great. However if I do not disable compilation (using the
-X-C option) then the stack trace is duplicated. Check out this forked
gist:

https://gist.github.com/peter-ryan/0ad175ddc3faf7a4b0b2

In it the stack trace reported is repeating lines:

from java/lang/reflect/Method.java:606:in `invoke'
from run_blah.rb:6:in `bar'
from run_blah.rb:6:in `bar'
from run_blah.rb:2:in `foo'
from run_blah.rb:2:in `foo'
from run_blah.rb:9:in `(root)'
from run_blah.rb:9:in `(root)'

Does anyone know why the stack trace is double printing?

Thanks in advance,

Peter
--
Posted via http://www.ruby-forum.com/.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Loading...