what does the spec say about file paths that are too long?
Alan Snyder
javalists at cbfiddle.com
Fri Aug 20 14:05:13 UTC 2021
Where did I say that I was seeing silent truncation?
My question is about the specification.
I want to know if I should write code that defends against silent truncation. I should be writing code based on the specification, not what I observe in a test program on a particular platform.
I’m pleased that you believe an exception should be thrown, but is that behavior mandated in the specification and tested by the JCK?
Alan
> On Aug 20, 2021, at 2:58 AM, Alan Bateman <Alan.Bateman at oracle.com> wrote:
>
> Where are you seeing "silent truncation"? You should see an I/O exception if you attempt to access a file and the resolved file path is too long.
>
> -Alan
>
More information about the core-libs-dev
mailing list