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 - return statement in anonymous innerclass reported as bad finally block
Summary: return statement in anonymous innerclass reported as bad finally block
Status: RESOLVED WONTFIX
Alias: None
Product: contrib
Classification: Unclassified
Component: Jackpot (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-30 14:25 UTC by cf126330
Modified: 2010-04-27 18:41 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 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