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 211208 - [72cat] "Unknown throwable" JavaDoc hint should provide optional fix import for RuntimeExceptions
Summary: [72cat] "Unknown throwable" JavaDoc hint should provide optional fix import f...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.2
Hardware: PC Windows 7 x64
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-15 08:14 UTC by crazyjavahacking
Modified: 2013-09-02 14:23 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
netbeans javadoc hint enhancement (36.19 KB, image/png)
2012-04-15 08:14 UTC, crazyjavahacking
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crazyjavahacking 2012-04-15 08:14:01 UTC
Created attachment 118284 [details]
netbeans javadoc hint enhancement

"Unknown throwable" JavaDoc hint is currently providing just the "Remove @throws tag" option.

In the case we have following snippet of code:
    /**
     * ...
     * @throws MyRuntimeException
     */
the hint is probably not what will user expect.

So for RuntimeExceptions it is kind of weird, because for such a case it should provide optional hint to add import for such RuntimeException.
Comment 1 crazyjavahacking 2012-07-30 18:51:11 UTC
Well, it does not make sense to provide a code completion for checked exception if it is not declared in throws clause. My fault.


This bug should be checked as invalid.
Comment 2 crazyjavahacking 2012-08-02 13:55:54 UTC
(In reply to comment #1)
> Well, it does not make sense to provide a code completion for checked exception
> if it is not declared in throws clause. My fault.
> 
> 
> This bug should be checked as invalid.

This was comment for another issue, sorry for that.