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 29572 - Debugger stopped on incorrect exception class
Summary: Debugger stopped on incorrect exception class
Status: CLOSED INVALID
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: -S1S-
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: jrojcek
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2002-12-16 15:07 UTC by sva
Modified: 2010-04-29 09:12 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sva 2002-12-16 15:07:08 UTC
Steps to reproduce:
1. Create following java class:
public class main1 {
    
    /** Creates a new instance of main1 */
    public main1() {
        
    }
    public void init1(){
        try{
          throw new java.lang.Exception();
        }catch(Exception e){
          System.out.println("Exception caught");
        }
    }
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       main1 a = new main1();
       a.init1();
    }
}
2. Compile it and add breakpoint to java.lang.Exception 
caught.
3. Start to debug main1 class.

Expected result: debugger should stopped on "Exception 
java.lang.Exception caught reached ..." 

Actual result: debugger stopped on following 
breakpoint: "Exception java.lang.ClassNotFoundException 
reached at line ? in class java.lang.ClassLoader by thread 
main."

Reproduced with S1S 4 update 1, build 021108.
Comment 1 Jan Jancura 2003-02-13 12:41:06 UTC
This is as designed. Debugger stops on defined exception and all its
subclasses. This is implicated by JPDA debugger definition.
We can expose this somehow to UI.
Comment 2 Martin Entlicher 2005-12-12 18:36:28 UTC
Invalid - this is as designed. java.lang.ClassNotFoundException is
java.lang.Exception.
Comment 3 Quality Engineering 2010-04-29 09:12:17 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.