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 228273 - Moving a file with a breakpoint causes inconsistent state
Summary: Moving a file with a breakpoint causes inconsistent state
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 05:55 UTC by mienamoo
Modified: 2014-02-11 21:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot 1 (10.31 KB, image/png)
2013-04-05 05:55 UTC, mienamoo
Details
Screenshot 2 (9.41 KB, image/png)
2013-04-05 05:55 UTC, mienamoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mienamoo 2013-04-05 05:55:15 UTC
Created attachment 133325 [details]
Screenshot 1

NetBeans 201302132200
JDK 7u17

I have seen this randomly happen before, but for the first time I have now noticed a pattern. :) Steps to reproduce:

1. Create a new NetBeans platform module (I used an Ant-based one).
2. Create a new Java class in the module.
3. Add a method with some code to it, and add a breakpoint. 
4. Create a new sub package.
(Everything should work as expected up to this point.)
5. Now move the class, breakpoint and all, to the new package.
6. The icon in the margin of the editor indicates that multiple breakpoints are on the line, yet the breakpoints window shows only one. (Screenshot 1 to be attached here.)
7. Toggling the breakpoint by clicking on the icon in the editor's margin just changes the presentation to that of a single exception in the editor. The Breakpoints window doesn't show it anymore. (Screesnhot 2)
8. Only after restarting the IDE will the presentation return to normal in the editor, i.e. no breakpoint shown there either.
Comment 1 mienamoo 2013-04-05 05:55:43 UTC
Created attachment 133326 [details]
Screenshot 2
Comment 2 Martin Entlicher 2013-04-05 10:01:01 UTC
Thanks for the steps.
I've reproduced the problem. It looks like the inconsistency is caused by DataObjectNotFoundException, which is thrown when annotating the moved file, for which the DataObject was not created yet.
Comment 3 Martin Entlicher 2014-02-11 21:57:01 UTC
Fixed in recent dev builds by better handling of breakpoints during DataObject rename.