History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-18878
Type: Bug Bug
Status: Open Open
Assignee: Maxim Shafirov
Reporter: Arik Kfir
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

A "Method 'xxx' is too complex to analyze" annotation message appears on a very simple method

Created: 26 Jul 08 01:40   Updated: 26 Jul 08 12:48
Component/s: Code Analysis. Inspection

File Attachments: None
Image Attachments:

1. screenshot.png
(180 kb)
Environment: Ubuntu Linux 8.04.1, JDK 1.6.0u6

Build: 8,618
Severity: Low


 Description  « Hide
I get the message "Method 'destroy' is too complex to analyze by data flow algorithm" for the given method:
    @PreDestroy
    public void destroy() {
        for( Server server : servers ) {
            try {
                server.disconnect();
            } catch( Exception e ) {
                LOG.warn( "Error disconnecting server: " + server.getName(), e );
            }
        }
    }

I imagine that this is a bug since the method does not strike me as too complex.

See attached screenshot for the message (appears at the status bar).



 All   Comments   Work Log   Change History      Sort Order:
Dmitry Jemerov - 26 Jul 08 12:48
This is not exactly a bug. As far as I know, try/catch in a loop always triggers this warning because it can't be handled well enough by our data flow analysis.