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 9102 - Breakpoint set to a line in innerclass of a innerclass is not valid
Summary: Breakpoint set to a line in innerclass of a innerclass is not valid
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Other
: P3 normal (vote)
Assignee: Marian Petras
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-01-15 15:40 UTC by David Strupl
Modified: 2003-06-30 17:26 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 David Strupl 2001-01-15 15:40:41 UTC
I have tried to set breakpoint in the innerclass of a innerclass. The breakpoint
was marked as (valid == false) and also the class was wrongly set to the
outer inner class. After correcting the class property everything worked ok.
It is quite annoying because you set a breakpoint to the System.out line and the
text get printed but the debugger will not stop.
Comment 1 David Strupl 2001-01-18 11:23:59 UTC
Note: the inner inner class is anonymous. In this situation it happens always.
Comment 2 Jan Jancura 2001-02-21 12:55:37 UTC
Assigned
Comment 3 Jan Jancura 2001-02-21 13:07:24 UTC
Assigned
Comment 4 Jan Jancura 2001-02-21 13:12:29 UTC
Assign
Comment 5 Jan Chalupa 2001-03-12 08:59:12 UTC
Version: 'Dev' -> 3.2
Comment 6 Marian Petras 2001-03-12 10:42:16 UTC
Fixed together with bug #8984 (Breakpoint set to a line in innerclass of a
innerclass is not valid).
Comment 7 Jan Stola 2001-03-22 14:06:12 UTC
I am still able to reproduce this bug in Pilsen (build 010321).

Steps to reproduce:
* Put breakpoint into anonymous inner class of named inner class.
* Compile the source file with Javac. Generated class files will be
  <someclass>.class, <someclass>$<namedInnerClass>.class
  and <someclass>$1.class.
* The debugger will not stop on that breakpoint.

Note: If you try to compile it with FastJavac (the IDE's default
compiler) you will get class files <someclass>.class,
<someclass>$<namedInnerClass>.class and <someclass>$<namedInnerClass>$1.class
and the breakpoint will work.
Comment 8 Marian Petras 2001-03-30 19:32:57 UTC
Fixed (main trunk, release32)

The fix is not as nice as it could be because of the JDK bug #4431170. Source
code of LineBreakpoint.java (both in JPDA and tools debugger) may be polished in
the future when the JDK bug is fixed.

If the breakpoint is set to an anonymous class, its "Source Name" property can't
never be set to proper name - just because it is anonymous. There is no standard
way how to compute the name of the generated .class file from the source code
for anonymous classes.
Comment 9 Jan Stola 2001-04-05 15:18:49 UTC
Verified in Netbeans release 3.2 build 21.
Comment 10 Jan Chalupa 2001-05-05 21:30:28 UTC
Target milestone -> 3.2
Comment 11 Quality Engineering 2003-06-30 17:26:47 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.