Disable creation time verification on Linux
Closes gh-40423
This commit is contained in:
parent
20e291d8dd
commit
3479304e13
|
@ -21,7 +21,6 @@ import java.io.FileOutputStream;
|
||||||
import java.io.FileWriter;
|
import java.io.FileWriter;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.lang.Runtime.Version;
|
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.LinkOption;
|
import java.nio.file.LinkOption;
|
||||||
import java.nio.file.attribute.BasicFileAttributeView;
|
import java.nio.file.attribute.BasicFileAttributeView;
|
||||||
|
@ -134,10 +133,11 @@ class ExtractCommandTests {
|
||||||
: CREATION_TIME;
|
: CREATION_TIME;
|
||||||
}
|
}
|
||||||
if (OS.LINUX.isCurrentOs()) {
|
if (OS.LINUX.isCurrentOs()) {
|
||||||
// Linux uses the modified time until Java 21.0.2 where a bug means that it
|
// Linux uses the birth time which it has not set, preventing us from
|
||||||
// uses the birth time which it has not set, preventing us from verifying it.
|
// verifying it.
|
||||||
// https://github.com/openjdk/jdk21u-dev/commit/4cf572e3b99b675418e456e7815fb6fd79245e30
|
// https://github.com/openjdk/jdk21u-dev/commit/4cf572e3b99b675418e456e7815fb6fd79245e30
|
||||||
return (Runtime.version().compareTo(Version.parse("21.0.2")) >= 0) ? null : LAST_MODIFIED_TIME;
|
// https://github.com/openjdk/jdk17u-dev/commit/184fac8af61633ccf833eda53183a27da8efb0f7
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
return CREATION_TIME;
|
return CREATION_TIME;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue