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 58555 - Mobility - setting variable values on read-only VM should be disabled
Summary: Mobility - setting variable values on read-only VM should be disabled
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on: 67046
Blocks: 66001
  Show dependency tree
 
Reported: 2005-05-04 08:32 UTC by _ kherink
Modified: 2010-04-29 09:22 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 _ kherink 2005-05-04 08:32:54 UTC
When debugging with the KVM which is read only i am able to edit the values
in the variable view. attempting top change an object reference generates an
error however when i try to change a field such as Vector.elementCount the
debugger accepts and displays the supplied new value. The best solution to this
problem would be to check if the remote VM is read-only and if so then all
editors for values should be disabled to avoid confusion.
Comment 1 Martin Entlicher 2005-05-04 10:48:20 UTC
Right. Appropriate checks needs to be added. Scheduling for 4.2.
Comment 2 _ kherink 2005-05-04 12:06:40 UTC
The checks and subsequent disabling of value editors will improve the UI so
scheduling those for 4.2 is fine, however the fact that the debugger currently
shows incorrect values for variables is a bigger problem and should be addressed
in the 4.1 final release.
Comment 3 _ kherink 2005-05-04 12:06:47 UTC
The checks and subsequent disabling of value editors will improve the UI so
scheduling those for 4.2 is fine, however the fact that the debugger currently
shows incorrect values for variables is a bigger problem and should be addressed
in the 4.1 final release.
Comment 4 Martin Entlicher 2005-05-04 13:21:13 UTC
It's unfortunately too late for 4.1. Only P1 issues with major impact can be
fixed into 4.1, therefore this will not be addressed in 4.1 final release.
Comment 5 _ kherink 2005-08-30 12:43:30 UTC
is this issue going to make it to 4.2?
Comment 6 Martin Entlicher 2005-10-17 18:53:43 UTC
VirtualMachine.canBeModified() is on JDK 1.5 only. :-( Therefore this feature
can be implemented for JDK 1.5 and higher only.

We need to propagate that information to
org.netbeans.modules.debugger.jpda.ui.models.VariablesTableModel.isReadOnly()
therefore this will likely require some API change in JPDA debugger... :-(
Comment 7 Martin Entlicher 2005-11-03 12:06:27 UTC
Fixed in trunk. Please verify whether it works fine for you (on JDK >= 1.5).

/cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/VariablesTableModel.java,v
 <--  VariablesTableModel.java
new revision: 1.11; previous revision: 1.10
Comment 8 Quality Engineering 2010-04-29 09:22:21 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.