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

Key: IDEA-11798
Type: Bug Bug
Status: Open Open
Assignee: Alexey Kudravtsev
Reporter: Sascha Weinreuter
Votes: 0
Watchers: 1
Operations

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

Create method intention isn't offered when arguments throw unhandled exceptions

Created: 05 Mar 07 13:42   Updated: 05 Mar 07 13:47
Component/s: Editor. Intention Actions

Build: 6,737
Severity: High


 Description  « Hide
It's no longer possible to create a method by intention if an argument for the unresolved method throws an unhandled exception:
class Regression {
    byte[] read() throws IOException {
        return new byte[0];
    }
    
    void test() {
        process(read());  // <-- Cannot create method "process" by intention
    }
}

This is probably caused by the fix for IDEADEV-13269: It seems it checks for the presence of any error inside the argument list, but it should only check for other unresolved symbols.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.