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 118444 - Cannot Set Breakpoint on Lines Showing the "Fix" Lightbulb
Summary: Cannot Set Breakpoint on Lines Showing the "Fix" Lightbulb
Status: CLOSED DUPLICATE of bug 105746
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-10 21:18 UTC by tomwheeler
Modified: 2010-04-29 09:36 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 tomwheeler 2007-10-10 21:18:29 UTC
Normally you can set a breakpoint on a given line of code by clicking the line number in the editor's gutter.

It is not possible to do this when the "Quick Fix" lightbulb icon is displayed for a line.  To reproduce, create a new
Java class and add some code to make use of an untyped collection:

    List myList = new ArrayList();
    myList.add("Foo");

The myList.add line will warn about the "unchecked call to add(E) as a member of the raw type java.util.List" and show
the lightbulb icon as described.  You cannot click the gutter to set a breakpoint at this line of code.

Two workarounds are possible:

1. You can click "Toggle Line Breakpoint" from the Tools menu

2. You can accept the fix to add the @SuppressWarnings("unchecked") annotation, which will eliminate the lightbulb icon.

I was able to demonstrate this using the following configuration:

Product Version: NetBeans IDE 6.0 Beta 1 (Build 200709141330) 
Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 1 ehucka 2007-10-10 22:19:55 UTC
This is duplicate of issue 105746. Editor gutter icons (lightbulbs) block gutter default action - toggle breakpoint.

*** This issue has been marked as a duplicate of 105746 ***
Comment 2 Quality Engineering 2010-04-29 09:36:06 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.