This is the most pragmatic solution I've seen.
> (B) Give an option to officially 'ignore' an exception, meaning you can
> throw / fail to handle a checked exception without declaring that you
> 'throw' it. This change would go along with the ability to catch a checked
> exception even if no statement in the try block appears to throw it,
> generating just a (suppressable) warning, instead of java6's current
> behaviour where this is an error. For example:
>
> public String readWordList() ignores IOException {
> InputStream in = MyClass.class.getResourceAsStream("wordlist.txt");
> ......
> }
>
>
--
You received this message because you are subscribed to the Google Groups "The
Java Posse" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/javaposse?hl=en.