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.
Build 1100 ---------- In the section Debugging Applets and Applications> Viewing the Value of Variables and Expressions> Setting a Watch to a Fixed Value there is a wrong description of a Fixed Watch. The difference between normal watch and fixed watch is that the normal watch describes content of some variable (with given name) but the fixed watch describes one given object. When you have normal watch on some variable, you can create a fixed watch from it. The fixed watch will be created on the object that is currently assigned to the variable. So the fixed watch is not immutable. Consider the following code: java.awt.Dimension dim=new java.awt.Dimension(10,20); java.awt.Dimension newDim=dim; dim=new java.awt.Dimension(20,30); newDim.height=15 Suppose that the debugger is stopped on the second line. Create watch on the dim variable. Create fixed watch from this variable (it will be created on object that is currently assigned to this variable - java.awt.Dimension(10,20)). Press F8 three times and look at the data in the debugger window. The normal watch shows that the java.awt.Dimension(20,30) is assigned to it (it was done on the third line). But the fixed watch shows that its current height is 15. It was created on the object with height 10, but on the fourth line height of this object was changed to 15.
*** Bug 7517 has been marked as a duplicate of this bug. ***
Resolved in Netbeans 3.1 (build 23)
Verified in Netbeans 3.1 (build 23)
Resolved for 3.4.x or earlier, no new info since then -> closing.