breakpoint inside the "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 inside the "finally" clause.
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
请先登录再写评论。
Hi,
Starting with 1.4.1 javac inlines finally clause in some cases that
could lead to problems of setting breakpoints.
Please, post issue to the tracker with class file that causes the problem.
Alex Yershov wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"