Skip to content

Update ExtractCommandTests to tolerate OS and Java version differences #39303

Closed
@wilkinsona

Description

@wilkinsona

ExtractCommandTests asserts that extracted files have their creation, last modified, and last access times set correctly. Unfortunately, how Java sets and reads the creation time varies by OS and Java version:

  • macOS
    • Java 19 and earlier the last modified time is used
    • Java 20 and later the creation time is used thanks to this enhancement
  • Linux
    • Java 21.0.1 and earlier the creation time is used
    • Java 21.0.2 and later the creation time isn't set at all so its value isn't predictable. This appears to be a bug introduced in this commit

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions