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.
Product Version: NetBeans IDE 7.1 RC1 (Build 201111202200) Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10 System: Windows 7 version 6.1 running on x86; Cp1252; en_US (nb) Steps: Have some debugging session stop on some breakpoint -> select some meaningful selection of code to use as a new watch -> right click on the selection to invoke popup menu -> select new watch -> new watch is created but only the piece of selection up to the mouseclick location is used in the new watch dialog - in 7.0.1 this worked fine -> regression
Yes, the editor behavior is different compared to 7.0.1, where selection was preserved. In 7.1 it only takes left context of caret i.e. sta|tus.setValue(taken) gives status, status.set|Value(taken) gives status.setValue which is obviously non-sense. status.setValue(ta|ken) gives taken which makes sense.
This must have been introduced recently. In build from 20111104 all works fine. The problem is not in debugger. The problem is, that the selection disappears on the right-click.
It was because of issue #205150. http://hg.netbeans.org/jet-main/rev/bfe7d36a2b19 It needs propagation into NB 7.1. I'd like to ask QE for verification and jlahoda for fix review. Thanks in advance.
will verify when it gets to nightly build
*** Bug 205444 has been marked as a duplicate of this bug. ***
*** Bug 205448 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/bfe7d36a2b19 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #205371 - New watch invoked by popup on selection in editor doesn't use whole selection.
verified on: Product Version: NetBeans IDE Dev (Build 201111230600) Java: 1.7.0_02; Java HotSpot(TM) 64-Bit Server VM 22.0-b10 System: Linux version 2.6.38-12-generic running on amd64; UTF-8; en_US (nb)
In release71: bfe7d36a2b19 transplanted to ebac1e4cde75
Integrated into 'releases' Changeset: http://hg.netbeans.org/releases/rev/ebac1e4cde75 User: Miloslav Metelka <mmetelka@netbeans.org> Log: #205371 - New watch invoked by popup on selection in editor doesn't use whole selection. (transplanted from bfe7d36a2b19e01a1cce0d52e62d5f241b2413b7)
*** Bug 205623 has been marked as a duplicate of this bug. ***