Skip to content

Commit 3479304

Browse files
committed
Disable creation time verification on Linux
Closes gh-40423
1 parent 20e291d commit 3479304

File tree

1 file changed

+4
-4
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-jarmode-layertools/src/test/java/org/springframework/boot/jarmode/layertools

1 file changed

+4
-4
lines changed

spring-boot-project/spring-boot-tools/spring-boot-jarmode-layertools/src/test/java/org/springframework/boot/jarmode/layertools/ExtractCommandTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import java.io.FileWriter;
2222
import java.io.IOException;
2323
import java.io.InputStreamReader;
24-
import java.lang.Runtime.Version;
2524
import java.nio.file.Files;
2625
import java.nio.file.LinkOption;
2726
import java.nio.file.attribute.BasicFileAttributeView;
@@ -134,10 +133,11 @@ private FileTime expectedCreationTime() {
134133
: CREATION_TIME;
135134
}
136135
if (OS.LINUX.isCurrentOs()) {
137-
// Linux uses the modified time until Java 21.0.2 where a bug means that it
138-
// uses the birth time which it has not set, preventing us from verifying it.
136+
// Linux uses the birth time which it has not set, preventing us from
137+
// verifying it.
139138
// https://github.com/openjdk/jdk21u-dev/commit/4cf572e3b99b675418e456e7815fb6fd79245e30
140-
return (Runtime.version().compareTo(Version.parse("21.0.2")) >= 0) ? null : LAST_MODIFIED_TIME;
139+
// https://github.com/openjdk/jdk17u-dev/commit/184fac8af61633ccf833eda53183a27da8efb0f7
140+
return null;
141141
}
142142
return CREATION_TIME;
143143
}

0 commit comments

Comments
 (0)