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 227563 - Fixable hint for "exception is never thrown in body of corresponding try statement"
Summary: Fixable hint for "exception is never thrown in body of corresponding try stat...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-16 22:15 UTC by markiewb
Modified: 2017-11-08 00:41 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
shows the error without fixable hint (5.28 KB, image/png)
2013-03-16 22:15 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description markiewb 2013-03-16 22:15:31 UTC
Created attachment 132690 [details]
shows the error without fixable hint

<code>
    void method() {
	try {
	    int i=1;
	} catch (JAXBException e) { // error in this line
	}
    }
</code>

ACTUAL: error "exception is never thrown in body of corresponding try statement", but no fixable hint

EXPECTED: error "exception is never thrown in body of corresponding try statement" with fixable hint "remove catch of newer thrown exception"
Comment 1 dtrebbien 2017-11-08 00:41:52 UTC
This appears to be implemented in the currently unreleased NB 9.0, by org.netbeans.modules.java.hints.errors.ExtraCatch