A trace function has the signature
trace_func(event, file, line, id, binding, klass)
The binding parameter should be an object that allows to lookup variables in the current scope.
The code in Ruby.callTraceFunction that sets this parameter is:
self != null ? self : getNil(),
which basically gives the name/type of the self object.
I believe that something like
would be better.
Mind you: I'm not entirely sure, though, what exactly the Binding class is supposed to be. The documentation is a bit scarce on this.
|Field||Original Value||New Value|
|Fix Version/s||JRuby 0.9.9 [ 13280 ]|
|Fix Version/s||JRuby 0.9.8 [ 13069 ]|
|Resolution||Fixed [ 1 ]|
|Assignee||Charles Oliver Nutter [ headius ]|
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Status||Resolved [ 5 ]||Closed [ 6 ]|