On Sat, 27 Mar 2021 03:34:11 GMT, Bernhard M. Wiedemann 
<github.com+637990+bmwiedem...@openjdk.org> wrote:

> Now the interesting question is, if it is possible to change `listFiles` to 
> always return deterministic output ...

Yes, that would be interesting, if `listFiles()` were defined by the Gradle 
build tool. I think it originates, though, in the Java 
[java.io.File.listFiles][1] API and is made available to Gradle through the 
Groovy programming language. The API states, "There is no guarantee that the 
name strings in the resulting array will appear in any specific order; they are 
not, in particular, guaranteed to appear in alphabetical order." That API was 
defined in December 1998 with Java version 1.2, so there's no changing it now.

[1]: 
https://docs.oracle.com/en/java/javase/16/docs/api/java.base/java/io/File.html#listFiles()

-------------

PR: https://git.openjdk.java.net/jfx/pull/99

Reply via email to