8162520: (fs) FileStore should support file stores with > Long.MAX_VALUE capacity
Alan Bateman
Alan.Bateman at oracle.com
Tue Oct 1 14:59:40 UTC 2019
On 01/10/2019 15:36, Brian Burkhalter wrote:
> Here is a stab [1] at fixing [2] using the above approach.
>
If we go with this approach then the new methods will need default
implementations that throw UOE (and UOE will need to be specified too).
This is because there are several FileSystemProvider implementations in
the wild. It's good to get the jrt and zip providers updated of course.
I see you've changed the spec for the existing methods to return a
negative value when the size is great than Long.MAX_VALUE. The
alternative is to return MAX_VALUE, I'm not sure which is better without
studying some of the existing usages of the API.
-Alan
More information about the nio-dev
mailing list