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 82412 - "return in finally block" false positive
Summary: "return in finally block" false positive
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Jackpot (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ tball
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-10 19:30 UTC by Jesse Glick
Modified: 2006-08-10 21: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 Jesse Glick 2006-08-10 19:30:12 UTC
Does not take nested classes into account.

try {
  ...
} finally {
  something.post(new Runnable() {
    public void run() {
      ...
      return; // <= falsely marked as return in finally block
    }
  });
}
Comment 1 _ tball 2006-08-10 19:37:01 UTC
Good catch!  I'll update the query to not search method invocation parameters.
Comment 2 _ tball 2006-08-10 21:11:23 UTC
Added the correct change to block scanning child nodes of ClassTree and
NewClassTree nodes, as both can be used within a finally block correctly.