Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 161571

Summary: [quick fix] Cast exception to thrown exception
Product: [Eclipse Project] JDT Reporter: Benno Baumgartner <benno.baumgartner>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3    
Version: 3.3   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description Benno Baumgartner CLA 2006-10-19 10:17:43 EDT
I20061017-0800

Given:
package test;
import javax.swing.text.BadLocationException;
public class E1 {
    public void foo() throws BadLocationException {
        throw ex();
    }
    private Exception ex() {
        return new BadLocationException("", -1);
    }
}
An error is shown at line throw ex(); but no quick fix to cast ex() to BadLocationException is provided.
Comment 1 Eclipse Genie CLA 2020-02-27 08:41:32 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.