You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by Nicolas Peltier <np...@adobe.com> on 2016/04/07 12:07:17 UTC
try-with-resources with resolver
Hi,
is it possible to use the try with resources [0] with resource resolver? My compiler yells resource resolver is not auto-closeable
Thanks,
Nicolas
[0] http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html
Re: try-with-resources with resolver
Posted by Nicolas Peltier <np...@adobe.com>.
thx!
> On 07 Apr 2016, at 12:53, Carsten Ziegeler <cz...@apache.org> wrote:
>
> Nicolas Peltier wrote
>> Hi,
>>
>> is it possible to use the try with resources [0] with resource resolver? My compiler yells resource resolver is not auto-closeable
>>
>
> This should work if you use the latest released Sling API
>
> Carsten
>
>
>> Thanks,
>> Nicolas
>>
>> [0] http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html
>>
>
>
>
> --
> Carsten Ziegeler
> Adobe Research Switzerland
> cziegeler@apache.org
Re: try-with-resources with resolver
Posted by Carsten Ziegeler <cz...@apache.org>.
Nicolas Peltier wrote
> Hi,
>
> is it possible to use the try with resources [0] with resource resolver? My compiler yells resource resolver is not auto-closeable
>
This should work if you use the latest released Sling API
Carsten
> Thanks,
> Nicolas
>
> [0] http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html
>
--
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org