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 159986

Summary: Error in rewriting of TryTree
Product: java Reporter: tronicek <tronicek>
Component: SourceAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description tronicek 2009-03-10 11:50:20 UTC
I rewrite TryTree:

            TryTree t = make.Try(node.getBlock(), cat2, node.getFinallyBlock());
            System.out.println("t: " + t);
            rewrite(node, t);

In the log, I can see that t is as I expect:

t: try {
    System.out.println(s.length());
} catch (IndexOutOfBoundsException e) {
    System.out.println(e);
} catch (NullPointerException e) {
    e.printStackTrace();
}

However, in the result one catch is missing:

        try {
            System.out.println(s.length());
        } catch (IndexOutOfBoundsException e) {
            System.out.println(e);
        }
Comment 1 Rastislav Komara 2009-03-11 13:52:23 UTC
Lowering priority. This issues are very specific.
Comment 2 Rastislav Komara 2009-03-11 13:52:39 UTC
Lowering priority. This issues are very specific.
Comment 3 David Strupl 2009-03-31 15:53:11 UTC
Resolving all issues with milestone "future" as LATER. If you feel strongly that
it should be implemented please reopen and set the target milestone to "next".
Comment 4 tronicek 2009-04-01 08:01:48 UTC
I am working on a refactoring module and these bugs are crucial for it to work.
Comment 5 Jan Lahoda 2009-08-20 09:57:45 UTC
Reassigning all moonko's java/source bugs to myself.
Comment 6 David Strupl 2012-10-25 13:41:44 UTC
Bug prior to 7.0, not touched for the last 2 years --> P4.
Comment 7 Martin Balin 2016-07-07 07:16:31 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss