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 49031 - Breakpoints in 'secondary' classes are never reached
Summary: Breakpoints in 'secondary' classes are never reached
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P2 blocker with 1 vote (vote)
Assignee: issues@debugger
URL:
Keywords: API
Depends on:
Blocks:
 
Reported: 2004-09-14 18:58 UTC by zikmund
Modified: 2006-03-24 09:52 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 zikmund 2004-09-14 18:58:22 UTC
Build 200409100847 (Q-build)
JDK 1.5 & 1.4.2_05

1) Have a Java Project with 1 file containing 2
classes (not inner class)
e.g.:
    package javaapplication1;
    public class Main {
      public static void main(String[] args) {
        t = new MyTest();
      }
    }
    class MyTest {
      public int i;
      public MyTest() {
        i = 7;
      }
    }
2) Set a breakpoint to the MyTest constuctor (at
line "i = 7;"
3) Debug application
4) ERROR:
Breakpoint is never reached, although you can step
into the code using "Step Into (F7)" action.
Comment 1 Maros Sandor 2004-09-15 09:16:34 UTC
Reproducible in trunk.
Comment 2 Jan Jancura 2004-10-07 16:34:46 UTC
APi change is needed.
Comment 3 Jan Jancura 2004-10-07 17:05:05 UTC
Fixed in the main trunk

we are testing the class name using src hierarchy module now.

QA: IMPORTANT CHANGES has been done in source code! Test carefuly line
breakpoints in different locations like:
normal class, innerclass, annonymous innerclass, annonymous innerclass
in some other innerclass, secondary class, classes in "" package....


Checking in
ant/src/org/netbeans/modules/debugger/projects/EditorContextImpl.java;
/cvs/debuggerjpda/ant/src/org/netbeans/modules/debugger/projects/EditorContextImpl.java,v
 <--  EditorContextImpl.java
new revision: 1.4; previous revision: 1.3
done
Processing log script arguments...
More commits to come...
Checking in api/src/org/netbeans/spi/debugger/jpda/EditorContext.java;
/cvs/debuggerjpda/api/src/org/netbeans/spi/debugger/jpda/EditorContext.java,v
 <--  EditorContext.java
new revision: 1.5; previous revision: 1.4
done
Processing log script arguments...
More commits to come...
Checking in
src/org/netbeans/modules/debugger/jpda/EditorContextBridge.java;
/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/EditorContextBridge.java,v
 <--  EditorContextBridge.java
new revision: 1.3; previous revision: 1.2
done
Processing log script arguments...
More commits to come...
Checking in
src/org/netbeans/modules/debugger/jpda/breakpoints/LineBreakpointImpl.java;
/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/breakpoints/LineBreakpointImpl.java,v
 <--  LineBreakpointImpl.java
new revision: 1.15; previous revision: 1.14
done
Processing log script arguments...
More commits to come...
Checking in
ui/src/org/netbeans/modules/debugger/jpda/ui/EditorContextBridge.java;
/cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/EditorContextBridge.java,v
 <--  EditorContextBridge.java
new revision: 1.5; previous revision: 1.4
done
Processing log script arguments...
More commits to come...
Checking in
ui/src/org/netbeans/modules/debugger/jpda/ui/models/BreakpointsActionsProvider.java;
/cvs/debuggerjpda/ui/src/org/netbeans/modules/debugger/jpda/ui/models/BreakpointsActionsProvider.java,v
 <--  BreakpointsActionsProvider.java
new revision: 1.8; previous revision: 1.7
done
Comment 4 zikmund 2004-10-11 15:25:38 UTC
Verified.