Summary: | Compiler doesn't require 'throws' declaration when class throws IOException | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Philip Gust <gust> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | RESOLVED DUPLICATE | QA Contact: | |
Severity: | major | ||
Priority: | P3 | ||
Version: | 3.0 | ||
Target Milestone: | 3.0 M5 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Philip Gust
2003-11-11 13:01:20 EST
In fact this is not a problem. You really don't need the throw clause, because your method will never throw the exception even if you go in the catch block. The reason is that your finally block always returns an array of bytes and silently consume the potential IOException. |