Affects Version/s: JRuby 1.7.0.pre2
Fix Version/s: JRuby 1.7.0.RC1
Environment:64-bit Debian 6.0.3 running JDK 1.7.0_02
Number of attachments :
I've noticed a bit of strange behaviour in the attached test program. I have:
- A main function with a top-level begin/ensure block, where the ensure block is supposed to perform some sort of cleanup at program exit.
- A 'while true' loop that runs a bit of code in a loop. That code is expected to throw an exception for the first few iterations, and the loop continues until the exceptions stop (think of polling a web server until it starts up)
- When the exceptions stop, the loop is terminated with a 'break'
What I'm seeing: the code immediately following this loop never runs. We jump straight to the 'ensure' block and the program terminates. What I see:
the statement 'puts "Why doesn't this get printed?"' never seems to fire.
I've tested against the following JVMs:
and I see the same issue with jruby-complete-220.127.116.11.jar as with jruby-complete-1.7.0.preview2.jar.
Please let me know if I can do any debugging from this side.