Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: JRuby 0.9.8
-
Component/s: None
-
Labels:None
-
Environment:JRuby-trunk, Linux
-
Number of attachments :
Description
Try to run following snippet with Ruby and then JRuby. With JRuby you will get attached NPE.
set_trace_func( lambda { |event, file, line, id, binding, classname|
printf "%s, %s:%s, %s, %s\n", event, file, line, id, classname
})
a = 1 # OK
sleep(1) # fails
I landed a fix for this earlier today....Here were the commit comments:
The test case provided the proper line number with this change and more importantly it did not NPE. If this ends up generating bad line numbers please create a follow up issue.
[Problem occurred with the introduction of fast method calls. Fast method calls do not create a Frame and now we cannot rely on getPreviousFrame existing anymore]