Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.5
-
Fix Version/s: None
-
Component/s: Core Classes/Modules
-
Labels:None
-
Patch Submitted:Yes
-
Number of attachments :
Description
Ruby#tearDown() method causes system exit when error occurs while evaluating. However, embedding API wants tearDown() method to just raise exception and not to exit JVM. embedding API want a change to manage exception when error is raised.
Attached patch controls system exit. This patch doesn't affect regular script evaluation.
Yoko: The patch looks fine to me, so go ahead. But do make sure to keep a no-argument version of teardown() for existing code that uses that form.