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 253822 - [81cat] Java hint: Replace with multi-catch shows entries with the same name
Summary: [81cat] Java hint: Replace with multi-catch shows entries with the same name
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Svata Dedic
Depends on:
Reported: 2015-07-26 22:40 UTC by cezariusz
Modified: 2015-08-06 14:25 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

First hint (22.87 KB, image/png)
2015-07-26 22:42 UTC, cezariusz
Second hint (25.00 KB, image/png)
2015-07-26 22:43 UTC, cezariusz

Note You need to log in before you can comment on or make changes to this bug.
Description cezariusz 2015-07-26 22:40:56 UTC

Product Version: NetBeans IDE Dev (Build 201507240001)
Java: 1.8.0_51; Java HotSpot(TM) 64-Bit Server VM 25.51-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_51-b16
System: Windows 8 version 6.2 running on amd64; UTF-8; pl_PL (nb)

    public void method(boolean cond) {
        try {
            if (cond) throw new BindException();
            else throw new NoRouteToHostException();
        } catch (Exception exception) { //Hint: Replace with multicatch catching specific exceptions

Hint shows two entries with the same name "Replace with multicatch catching specific exceptions", they do the same, but when you press the right arrow, the content is different, because the come from different hints (UseSpecificCatch and TooBroadCatch).
Comment 1 cezariusz 2015-07-26 22:42:03 UTC
Created attachment 154920 [details]
First hint
Comment 2 cezariusz 2015-07-26 22:43:05 UTC
Created attachment 154921 [details]
Second hint
Comment 3 Jiri Prox 2015-08-06 14:25:04 UTC