Try/finally problem

I checked a java guide and found this example :

try {
// Block of code with multiple exit points
}
finally {
// Block of code that is always executed when the try block is exited,
// no matter how the try block is exited
}

A sample code in eclipse works fine. However when using Oxygene and this code :

class method ConsoleApp.Main(args: array of String);
begin
try
// if length(str)=0 then raise new Exception(); // -< jumps to finally
if length(str)=0 then exit ; // -< doesn’t jump to finally
finally
System.out.println(‘finally done’);
end ;
end;

the ‘exit’ method doesn’t pass the ‘finally’ section exiting the method. Is this correct or a bug in my opinion?

Regards
Artur

Thanks, logged as bugs://55889 for review
Posted by Bugs for Mac

this is fixed for the next beta drop, thank you.

What version was this a bug in? I just tried the code and it works for me. I’ve got:

Microsoft Visual Studio 2010
Version 10.0.40219.1 SP1Rel
Microsoft .NET Framework
Version 4.0.30319 SP1Rel

Installed Version: Professional

Microsoft Office Developer Tools 01018-532-2002102-70042
Microsoft Office Developer Tools

Microsoft Visual Basic 2010 01018-532-2002102-70042
Microsoft Visual Basic 2010

Microsoft Visual C# 2010 01018-532-2002102-70042
Microsoft Visual C# 2010

Microsoft Visual C++ 2010 01018-532-2002102-70042
Microsoft Visual C++ 2010

Microsoft Visual F# 2010 01018-532-2002102-70042
Microsoft Visual F# 2010

Microsoft Visual Studio 2010 Team Explorer 01018-532-2002102-70042
Microsoft Visual Studio 2010 Team Explorer

Microsoft Visual Web Developer 2010 01018-532-2002102-70042
Microsoft Visual Web Developer 2010

Embarcadero Delphi Prism 4.0.27.843

RemObjects Everwood 3.0.17.257
RemObjects Everwood for .NET
Copyright 2003-2010 RemObjects Software, LLC. All rights reserved.
http://www.remobjects.com/everwood

RemObjects Oxygene 4.0.27.843
RemObjects Oxygene
Copyright 2003-2011 RemObjects Software, LLC. All rights reserved.
http://www.remobjects.com/oxygene

this issue is from May, it has been long fixed.