Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 44759 - Eclipse breaks into debugger when a java.lang.Error is thrown
Summary: Eclipse breaks into debugger when a java.lang.Error is thrown
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Luc Bourlier CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 44885 46222 46252 46879 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-10-13 10:58 EDT by Boris Pruessmann CLA
Modified: 2003-11-20 11:05 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris Pruessmann CLA 2003-10-13 10:58:37 EDT
Eclipse 3.0M4

If you run the following example, Eclipse will always break into the debugger 
when it reaches the throw statement. This differes from the previous behavior 
and gets very annoying if you use third party code that throws Errors and 
catches them later on.

public class TestClass
{
    public static void main(String[] args)
    {
        try {
            throw new Error("");
        } catch (Error e) {
        }
    }
}
Comment 1 Boris Pruessmann CLA 2003-10-13 11:01:18 EDT
Additional note: Eclipse doesn't break if "Suspend execution on compilation 
errors" is turned off, but this is obviously not a compilation error!
Comment 2 Luc Bourlier CLA 2003-10-13 13:51:30 EDT
it's a side effect of the fix for bug 37760

JavaDebugOptionManager answers DONT_CARE, so the debugger suspends the thread.
Comment 3 Jared Burns CLA 2003-10-14 14:09:11 EDT
A similar problem existed if you set "suspend on compilation..." false and 
"suspend on uncaught..." true, then debugged to a compilation error. It would 
suspend when it shouldn't have because the uncaught exception was returning 
DONT_CARE when it meant DONT_SUSPEND.

Fixed in JavaDebugOptionsManager. Please verify, Luc.
Comment 4 Luc Bourlier CLA 2003-10-14 15:02:41 EDT
Verified.
Comment 5 Darin Wright CLA 2003-10-15 09:50:00 EDT
*** Bug 44894 has been marked as a duplicate of this bug. ***
Comment 6 Darin Wright CLA 2003-10-15 09:50:21 EDT
*** Bug 44885 has been marked as a duplicate of this bug. ***
Comment 7 Darin Wright CLA 2003-11-07 09:41:54 EST
*** Bug 46252 has been marked as a duplicate of this bug. ***
Comment 8 Darin Wright CLA 2003-11-10 22:09:36 EST
*** Bug 46222 has been marked as a duplicate of this bug. ***
Comment 9 Darin Wright CLA 2003-11-18 16:06:52 EST
*** Bug 46879 has been marked as a duplicate of this bug. ***
Comment 10 Darin Wright CLA 2003-11-20 11:05:58 EST
*** Bug 47023 has been marked as a duplicate of this bug. ***