On 1/30/2011 5:27 AM, Steven Bethard wrote:
>
> I think we have a basic disagreement about what is buggy user code and
> what isn't. I believe that declaring a method as "throws" is not buggy
> code, and I believe that using RuntimeExceptions instead of checked
> exceptions is not buggy code as long as they're declared to be thrown
> (e.g. like SecurityException on File.getAbsolutePath). But I don't
> think we're going to come to an agreement on this issue, so let's set
> it aside.
>
> The main reason to add the feature is to allow your users to take the
> countless number of existing libraries that can do useful things with
> Iterators and apply them to your ObjectStreams.
>
> Steve
http://www.ecreate.co.uk/pages/inputStreamIterator.php

Steve, here is a good example of why not.

James

Reply via email to