This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 254791 - Breakpoints do not work in finally blocks in case of exceptions
Summary: Breakpoints do not work in finally blocks in case of exceptions
Status: CLOSED WONTFIX
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 8.1
Hardware: PC All
: P2 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-27 17:54 UTC by Egor Ushakov
Modified: 2016-10-18 14:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Egor Ushakov 2015-08-27 17:54:32 UTC
public static void main(String[] args) {
        try {
            foo();
        } finally {
            System.out.println("Finally"); //breakpoint on this line does not work
        }
    }

    private static void foo() {
        throw new UnsupportedOperationException("Not supported yet.");
    }
Comment 1 Egor Ushakov 2015-08-27 17:56:39 UTC
jdk 8u60 just in case
Comment 2 Jiri Kovalsky 2015-08-28 07:47:11 UTC
Product Version: NetBeans IDE Dev (Build 201508250002)
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Linux version 3.13.0-37-generic running on amd64; UTF-8; cs_CZ (nb)
User directory: /home/cesilko/.netbeans/dev
Cache directory: /home/cesilko/.cache/netbeans/dev

Reproduced.
Comment 3 Martin Entlicher 2015-08-28 09:11:30 UTC
Reproduced as well.
And reproduced with jdb also.
This is not a NetBeans bug. I'll submit a defect for JDK...
Comment 4 Martin Entlicher 2015-08-28 11:19:43 UTC
https://bugs.openjdk.java.net/browse/JDK-8134653
Comment 5 Jiri Kovalsky 2015-08-28 12:22:19 UTC
OK, closing then.
Comment 6 Martin Entlicher 2016-10-18 14:43:29 UTC
See also issue #49225.