Invalid argument exception when trying to seek FilePosition to LONG.MAX_VALUE
Florian Weimer
fweimer at redhat.com
Thu Jun 6 18:30:07 UTC 2019
* Karan Mehta:
> Let me clarify this a bit further. If the underlying FS throws an
> exception while seeking to LONG.MAX_VALUE, the JNI call should catch
> it and return a No-op to the Java function, instead of throwing it
> back further.
That would cause subsequent operations use the previous file offset,
possibly leading to data corruption. I don't think that's a good idea.
Thanks,
Florian
More information about the nio-dev
mailing list