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 139364 - New breakpoint doesn't automatically recognize field everywhere
Summary: New breakpoint doesn't automatically recognize field everywhere
Status: VERIFIED DUPLICATE of bug 66316
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-09 10:37 UTC by Petr Cyhelsky
Modified: 2008-07-10 12:04 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 Petr Cyhelsky 2008-07-09 10:37:54 UTC
Product Version: NetBeans IDE Dev (Build 200807090008)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb)

Observed: New breakpoint dialog correctly recognizes field only when caret is at their declaration - if the caret is on
the field anywhere else the New breakpoint dialog doesn't recognize it and it is automatically set to some other type of
breakpoint(class, method, etc.).

Expected: When the caret is inside some field(and the field is set active(yellowish background)) new breakpoint should
be automatically set to field breakpoint for this field.

Steps to reproduce: Open MemoryView.java in editor -> place caret on some of the three fields on lines 38-40 and see
that its background changes to yellow -> invoke Run|New Breakpoint
Comment 1 Martin Entlicher 2008-07-09 13:01:50 UTC
IMHO this is a duplicate of issue #66316.
The fields could be recognized in the code via Javac API.
But this is more an enhancement then a defect, this functionality was not yet implemented.

*** This issue has been marked as a duplicate of 66316 ***
Comment 2 Petr Cyhelsky 2008-07-10 12:04:18 UTC
duplicate verified