Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 82412 - "return in finally block" false positive
"return in finally block" false positive
Product: contrib
Classification: Unclassified
Component: Jackpot
All All
: P3 (vote)
Assigned To: _ tball
Depends on:
  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


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 { 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. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo