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.
Created attachment 155257 [details] Picture is showing described breakpoints Product Version: NetBeans IDE Dev (Build 201508100002) Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb) User directory: C:\Users\cendrowiczm\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\cendrowiczm\AppData\Local\NetBeans\Cache\dev Test Case --> http://services.netbeans.org/synergy/client/app/#/case/952/suite/1632/v/1 --Use Case-- 1. Place caret somewhere on a line with method declaration 2. Toggle line breakpoint --Expected-- IDE does not allow to toggle line breakpoint on a line with method declaration like it does for lines with class definition. IDE beeps. --Actual-- IDE toggles a line breakpoint which is actually useless because there is no executable location at this line. It is possible to toggle such breakpoint via: CTRL+F8, editor context menu and gutter context menu.
This is allowed intentionally, methods might have some code on the declaration line. E.g.: public in getX() { return x; } We'd have to test for a presence of code on the declaration line. IMHO this is more like P4 priority.