breakpoint inside "finally"...

Can someone try this, please?

1. create a try/catch/finally block.
2. put some statement inside the "finally" clause ("System.out...."). Insert a "return" statement into both "try" and "catch" blocks.
3. Put a breakpoint on the statement in "finally".
4. Run the debugger.

In my case, the debugger never stops on the breakpoint, but "System.out..." does get called and outputs the expected message.

Should this be reported as a bug?

Version: 4.0.3, build 1181.

Thanks,

- Alex

1 comment
Comment actions Permalink

My guess is that you will have to set a breakpoint on one of the
statements inside the finally.

Also, the j.i.community is probably the best place to post this.

Norris Shelton
Sun Certified Java Programmer




Alex Yershov wrote:

>Can someone try this, please?
>
>1. create a try/catch/finally block.
>2. put some statement inside the "finally" clause ("System.out...."). Insert a "return" statement into both "try" and "catch" blocks.
>3. Put a breakpoint on the statement in "finally".
>4. Run the debugger.
>
>In my case, the debugger never stops on the breakpoint, but "System.out..." does get called and outputs the expected message.
>
>Should this be reported as a bug?
>
>Version: 4.0.3, build 1181.
>
>Thanks,
>
>- Alex

>

0

Please sign in to leave a comment.