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.
Summary: | Catch all exceptions that can be thrown from JDI calls. | ||
---|---|---|---|
Product: | debugger | Reporter: | Martin Entlicher <mentlicher> |
Component: | Java | Assignee: | Martin Entlicher <mentlicher> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | Keywords: | PLAN |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | TASK | Exception Reporter: |
Description
Martin Entlicher
2008-06-16 14:02:43 UTC
Scheduling for 7.0. The intended implementation of this is to generate wrappers for JDI methods and checked wrapper exceptions. Every method should clearly specify what exception can be thrown from it and the code needs to catch these exceptions. JDI methods should not be called directly, but only through the wrappers. This will prevent from unexpected exceptions. Also, the wrappers can automatically catch pathological exceptions, like InternalErrors, which do occur, sometimes. InternalExceptions can be handled more gracefully - see e.g. issue #54624. Wrappers for JDI methods are generated, they throw checked exceptions that must be caught in the code. All class to JDI are rewritten to use the wrapper methods in debugger.jpda module: http://hg.netbeans.org/main/rev/ce0f62c27784 http://hg.netbeans.org/main/rev/3390b1db7b95 http://hg.netbeans.org/main/rev/da5914cb240b http://hg.netbeans.org/main/rev/6380978bfeff Integrated into 'main-golden', will be available in build *200812231401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/ce0f62c27784 User: mentlicher@netbeans.org Log: #137310 - Added class generating wrappers of all JDI methods. These wrappers should catch exceptions thrown from JDI calls. this issue has been verified recently. Appears as fixed. |