Exceptions as flow control, as an alternate return type, specified slightly
outside of the method signature...
Perhaps we're going about things the wrong way, instead of needing a
@sneakyThrows annotation, maybe what Java really needs is to rename the
throws keyword so that it better reflects the true intent and usage...
public FileHandle fileOpen(String name) sneakyReturns FileNotFound {
...
}
On 23 September 2010 23:23, Fabrizio Giudici
<[email protected]>wrote:
> On 9/23/10 13:13 , Ricky Clarkson wrote:
>
>> Indeed. The try block is the 'happy path' but any other path is quite
>> normal too.
>>
>> +1
>
> --
> Fabrizio Giudici - Java Architect, Project Manager
> Tidalwave s.a.s. - "We make Java work. Everywhere."
> java.net/blog/fabriziogiudici - www.tidalwave.it/people
> [email protected]
>
> --
> 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]<javaposse%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
>
>
--
Kevin Wright
mail / gtalk / msn : [email protected]
pulse / skype: kev.lee.wright
twitter: @thecoda
--
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.