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

Summary: "return in finally block" false positive
Product: contrib Reporter: Jesse Glick <jglick>
Component: JackpotAssignee: _ tball <tball>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

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.