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

Summary: Multi-catch hint with multiple multi-catch
Product: java Reporter: arungupta <arungupta>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED FIXED    
Severity: normal CC: markiewb
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

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