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 7659 - Wrong description of Fixed Watches
Summary: Wrong description of Fixed Watches
Status: CLOSED FIXED
Alias: None
Product: usersguide
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: Patrick Keegan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-09-14 15:50 UTC by Jan Stola
Modified: 2003-07-01 15:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Stola 2000-09-14 15:50:42 UTC
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.
Comment 1 Jan Stola 2000-11-03 17:19:59 UTC
*** Bug 7517 has been marked as a duplicate of this bug. ***
Comment 2 Jan Stola 2000-12-08 11:05:59 UTC
Resolved in Netbeans 3.1 (build 23)
Comment 3 Jan Stola 2000-12-08 11:06:59 UTC
Verified in Netbeans 3.1 (build 23)
Comment 4 Quality Engineering 2003-07-01 15:24:49 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.