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 - Erroneous hint "Created Throwable not thrown"
Summary: Erroneous hint "Created Throwable not thrown"
Status: RESOLVED DUPLICATE of bug 255635
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-23 22:49 UTC by matthies
Modified: 2016-07-13 12:11 UTC (History)
0 users

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 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 ***