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 208414 - Ignored breakpoint in anonymous inner class
Summary: Ignored breakpoint in anonymous inner class
Status: RESOLVED INCOMPLETE
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-14 17:05 UTC by marcusgy
Modified: 2012-02-15 11:03 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 marcusgy 2012-02-14 17:05:08 UTC
I have set a breakpoint in the actionPerformed method of an anonymous inner class. The editor shows it as being a breakpoint with the red hightlight, etc. however when debugging that breakpoint is not hit.

It is an anonymous inner class inside the finished method of a custom swing worker, if that makes any difference.

I don't see any error messages show up in the Debugger Console.

Can someone please try to replicate.

Note also that this is on Linux (specifically Ubuntu 10.04) if that's relevant.
Comment 1 marcusgy 2012-02-14 17:11:30 UTC
Forgot to say that the line at the breakpoint simply calls another method and if I put a breakpoint in that method, it is hit. (That method is a normal top-level method in a class).
Comment 2 Martin Entlicher 2012-02-15 11:03:33 UTC
It's likely, that the anonymous inner class has a different binary name that our Java support predicts.
In order to identify the problem, we need a test case. Please provide the whole Java file in which this problem occurred, or if it's confidential, some sample project that demonstrates this issue.