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 195873 - "Edit" action does not edit fixed watches
Summary: "Edit" action does not edit fixed watches
Status: RESOLVED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-23 15:24 UTC by Jiri Kovalsky
Modified: 2011-03-08 05:48 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 Jiri Kovalsky 2011-02-23 15:24:16 UTC
Product Version: NetBeans IDE Dev (Build 201102220001)
Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02
System: Linux version 2.6.35-22-generic running on i386; UTF-8; cs_CZ (nb)
Userdir: /home/cesilko/.netbeans/dev

Description:
============
It would be nice if "Edit" action takes context into account. Right now it only edits original watch and not fixed watches.

Steps to reproduce:
===================
1. Create sample AnagramGame application.
2. Toggle breakpoint at line 54 in Anagrams.java and press Ctrl+F5.
3. Once the breakpoint is hit, invoke "Debug > New Watch..." from main menu.
4. Type "new Long(1)" into Watch Expression field and push "OK" button.
5. Right click "new Long(1)" watch node and invoke "Create Fixed Watch".
6. Right click newly created "new Long(1)" fixed watch node and invoke "Edit" from its popup menu.
7. Change it to "new Long(2)" and push "OK" - the original watch will be updated and not the fixed one.
Comment 1 Martin Entlicher 2011-03-07 12:52:15 UTC
There's no real support for editing of fixed watches in the code, therefore the current behavior is a strange side-effect.
As a fast solution, I've disabled editing of fixed watches. It should not be a big problem, the fixed watches were designed as "fixed" anyway and a new fixed watch can be created from a modified watch when necessary.
Fixed by changeset:   190486:5d82a4184787
http://hg.netbeans.org/main/rev/5d82a4184787
Comment 2 Quality Engineering 2011-03-08 05:48:49 UTC
Integrated into 'main-golden', will be available in build *201103080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/5d82a4184787
User: mentlicher@netbeans.org
Log: #195873 Disable editing of fixed watches.