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 262556

Summary: Erroneous hint "Created Throwable not thrown"
Product: java Reporter: matthies <matthies>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description matthies 2016-06-23 22:49:06 UTC
Example:

    void foo(boolean condition)
    {
        try
        {
            // something
        }
        catch (RuntimeException ex)
        {
            if (condition)
            {
                ex = new RuntimeException("other message", ex);  // (*)
            }
            throw ex;
        }
    }

The hint is shown for the line marked with (*), although the created RuntimeException is thrown in the next statement.
Comment 1 Svata Dedic 2016-07-13 12:11:02 UTC
The cause seems to be a duplicate of issue #255635

*** This bug has been marked as a duplicate of bug 255635 ***