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 225929 - Multi-catch hint with multiple multi-catch
Summary: Multi-catch hint with multiple multi-catch
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-09 08:38 UTC by arungupta
Modified: 2016-07-26 01:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description arungupta 2013-02-09 08:38:41 UTC
For a catch statement like:

        } catch (NotSupportedException | SystemException ex) {
            Logger.getLogger(MyTaskWithTransaction.class.getName()).log(Level.SEVERE, null, ex);
        } catch (RollbackException | HeuristicMixedException | HeuristicRollbackException | SecurityException | IllegalStateException ex) {
            Logger.getLogger(MyTaskWithTransaction.class.getName()).log(Level.SEVERE, null, ex);
        }


NetBeans should show a hint that multi-catch is possible.
Comment 1 Svata Dedic 2015-10-05 13:42:28 UTC
Defect; UnionType of an existing multi-catch is not handled properly
Comment 2 Svata Dedic 2016-07-19 09:03:52 UTC
Fixed in jet-main#1ee9b237a894
Comment 3 Quality Engineering 2016-07-26 01:51:36 UTC
Integrated into 'main-silver', will be available in build *201607260002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/1ee9b237a894
User: Svata Dedic <sdedic@netbeans.org>
Log: #225929: support for joining multicatches