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 77082

Summary: return statement in anonymous innerclass reported as bad finally block
Product: contrib Reporter: cf126330 <cf126330>
Component: JackpotAssignee: issues@contrib <issues>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description cf126330 2006-05-30 14:25:39 UTC
If I have some anonymous innerclass inside finally block, the return statement
inside the innerclass is incorrectly reported by rule "bad finally block."  For
instance,

} finally {
    java.security.AccessController.doPrivileged(
        new java.security.PrivilegedAction() {
             public java.lang.Object run() {
                // do something
                return null;
            }
        });
    }
Also see this blog entry:
http://blogs.sun.com/roller/page/chengfang?entry=refactoring_with_jackpot_in_glassfish

This happens on Jackpot beta (downloaded from Netbeans.org on 5/29/2006),
NetBeans 5.0, Solaris Sparc 10, and JDK 1.5_6.
Comment 1 Jesse Glick 2010-04-27 18:41:12 UTC
The old Jackpot module is no longer maintained. There is a rewrite in progress at: http://bitbucket.org/jlahoda/jackpot30/wiki/Home