Bug 82412 - "return in finally block" false positive
"return in finally block" false positive
Status: RESOLVED FIXED
Product: contrib
Classification: Unclassified
Component: Jackpot
5.x
All All
: P3 (vote)
: TBD
Assigned To: _ tball
issues@contrib
:
Depends on:
Blocks:
  Show dependency treegraph
 
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
:


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.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo