Review: demos for jdk8

Paul Benedict pbenedict at apache.org
Fri Oct 11 08:04:07 PDT 2013


I think there may be a problem with Console::close(). Even though the
Console instance will be disposed in a try-with-resources construct, that
doesn't the reader and writer are guaranteed to close together. Currently,
if the reader fails to close, the writer will be left dangling. What do you
think of putting a try/catch in close() (and maybe suppressing one of them)?


On Fri, Oct 11, 2013 at 9:56 AM, Andrey Nazarov <andrey.x.nazarov at oracle.com
> wrote:

> Hi guys,
>
> Did you have a chance to review our jdk8 demos?
>
> http://cr.openjdk.java.net/~anazarov/try-with-resources/
> http://cr.openjdk.java.net/~anazarov/repeating-annotations/
> http://cr.openjdk.java.net/~anazarov/jdk8-demo-bulkoperations/
> http://cr.openjdk.java.net/~anazarov/extension-methods/
>
>
> -- Andrey.
>
> On 13.09.2013 5:49, Andrey Nazarov wrote:
> > I've fixed subject
> > ---
> > Hi guys,
> >
> > We want to push our demo code for try-with-resources feature
> > Could you please review this code?
> > http://cr.openjdk.java.net/~anazarov/try-with-resources/
> >
> >
> > --Andrey.
> >
>
>
>


-- 
Cheers,
Paul


More information about the lambda-dev mailing list