lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dawid Weiss (JIRA)" <>
Subject [jira] [Commented] (LUCENE-5945) Full cutover to Path api from
Date Fri, 12 Sep 2014 19:41:36 GMT


Dawid Weiss commented on LUCENE-5945:

Pretty cool idea!

> Full cutover to Path api from
> ------------------------------------------
>                 Key: LUCENE-5945
>                 URL:
>             Project: Lucene - Core
>          Issue Type: Task
>            Reporter: Robert Muir
> Using NIO2 has a lot of benefits:
> * more fine grained exception handling
> * clearer semantics about what happens
> * additional functionality
> * possibility to work with virtual filesystems, etc.
> We already banned File.delete and switched to Files.delete, I think we should ban File
completely (except for some sugar methods that just forward with .toPath, like
> For tests, ideally we go a little further and ban methods like FileSystems.getDefault().
Instead we could exempt LuceneTestCase and ensure all Paths are created via one protected
method. This leaves open the possibility to mock up filesystem behavior at a lower level in
tests in the future.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message