Skip to content

Commit 7d6adf2

Browse files
committed
8280896: java/nio/file/Files/probeContentType/Basic.java fails on Windows 11
Backport-of: f9137cb7b79f86e96247e7b4bc4abb03857afe75
1 parent 1572e77 commit 7d6adf2

File tree

1 file changed

+2
-2
lines changed
  • test/jdk/java/nio/file/Files/probeContentType

1 file changed

+2
-2
lines changed

test/jdk/java/nio/file/Files/probeContentType/Basic.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2008, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2008, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -161,7 +161,7 @@ public static void main(String[] args) throws IOException {
161161
new ExType("doc", List.of("application/msword")),
162162
new ExType("docx", List.of("application/vnd.openxmlformats-officedocument.wordprocessingml.document")),
163163
new ExType("gz", List.of("application/gzip", "application/x-gzip")),
164-
new ExType("jar", List.of("application/java-archive", "application/x-java-archive")),
164+
new ExType("jar", List.of("application/java-archive", "application/x-java-archive", "application/jar")),
165165
new ExType("jpg", List.of("image/jpeg")),
166166
new ExType("js", List.of("text/javascript", "application/javascript")),
167167
new ExType("json", List.of("application/json")),

0 commit comments

Comments
 (0)