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.
If I use the popup menu in source code to insert profiling point, in some cases i see the warning that the location of the profiling point is invalid and warning that it will not be hit. Though I am told the profiling point is in an invalid location, the pp appears to be created, the icon is visible in gutter, is listed in profiling points window and in list of active profiling points. I can also create the profiling point in an invalid location in the profiling points window. The behavior seems a bit unclear to me. If the profiling point will not be hit is there a reason to create it there? Also, should this be indicated somehow to distinguish the pp from pps in valid locations? Right now there is no way to visibly see which profiling points will be hit/are valid.
This is caused by fixing Issue 118529. As mentioned there, the algorithm is just a best guess if the location is invalid, it's possible that it's actually correct and that's why the profiling point isn't disabled/removed. Currently it works as intended, in future we should improve the location validity check and for example disable the invalid profiling points. I think that marking invalid profiling points is an enhancement, in the current version the dialog correctly suggests to check the location but using an invalid profiling point doesn't break any functionality. Changing to ENHANCEMENT.
Milestone cleanup: future->next