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.
NetBeans IDE 4.2 [200504181800 on jdk 1.5.0_03 1, Create line breakpoint 2, Customize the breakpoint, set the line number to line bigger than file length 3, Debug the file => after debugger start the breakpoint line number is reverted to original line number, debugger stops on the original line, but the annotations are not correct (missing line brakpoint annotation) IMHO correct behaviour would be to check the line number right after closing the customize dialog. If the line number would be bigger than length, breakpoint should not be customized and warning message in statur bar should be displayed.
*** Issue 50656 has been marked as a duplicate of this issue. ***
There's missing verification of whether the break point has sense or not.
*** Issue 66127 has been marked as a duplicate of this issue. ***
When negative value is entered, a warning message is shown with text: 'Line number should be specified' which apparently is not the correct message.
Why it's not correct? Negative value is not a line number. Or you do have a negative line number in your source file? :-)
I've got java.lang.IndexOutOfBoundsException while reproducing this...
Created attachment 26861 [details] The NPE thrown when the breakpoint is customized after EOF.
Created attachment 26862 [details] The IOOBE thrown when the breakpoint is customized after EOF.
The validation logic in the line breakpoint customizer improved. Also the message is displayed *before* the customizer is closed. /cvs/debuggerjpda/ui/nbproject/project.xml,v <-- project.xml new revision: 1.12; previous revision: 1.11 /cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/breakpoints/Bundle.properties,v <-- Bundle.properties new revision: 1.15; previous revision: 1.14 /cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/breakpoints/LineBreakpointPanel.java,v <-- LineBreakpointPanel.java new revision: 1.9; previous revision: 1.8 /cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/BreakpointsActionsProvider.java,v <-- BreakpointsActionsProvider.java new revision: 1.14; previous revision: 1.13 /cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/Bundle.properties,v <-- Bundle.properties new revision: 1.28; previous revision: 1.27 /cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/EditorContextImpl.java,v <-- EditorContextImpl.java new revision: 1.21; previous revision: 1.20
Verified in 200512181900