Finally statement not executed in 3.1 M3!? [message #187147] |
Wed, 24 November 2004 09:10  |
Eclipse User |
|
|
|
Originally posted by: none.nospam.com
Hi all,
I am using Eclipse 3.1 M3 and executing the following code:
// Prepare the output file
File file = new File(filename);
FileOutputStream fos = new FileOutputStream(file);
try {
Result result = new StreamResult(fos);
// Write the DOM document to the file
Transformer xformer =
TransformerFactory.newInstance().newTransformer();
xformer.transform(source, result);
}
finally {
if(fos != null) {
fos.close();
}
}
When I debug this code the stepcursor never reaches the finally statement.
Is this a known issue of this build? (I searched the bugdatabase, but could
not find anything).
kind regards,
Christiaan
|
|
|
|
|
Re: Finally statement not executed in 3.1 M3!? [message #187232 is a reply to message #187218] |
Wed, 24 November 2004 17:24  |
Eclipse User |
|
|
|
Originally posted by: olivier_thomannNOSPAM.ca.ibm.com
Christiaan a écrit :
> Indeed if I put the breakpoint in the finally statement the debugger steps,
> but if I put a breakpoint on "xformer.transform(source, result);" and use
> step over, it skips the finally block. Is this normal behaviour?
Mo, this is not the normal behavior. Report a bug against JDT/Debug with
steps to reproduce, vm version, os, etc.
--
Olivier
|
|
|
Powered by
FUDForum. Page generated in 0.21932 seconds