Skip to content

Commit f9137cb

Browse files
author
Andrey Turbanov
committed
8280896: java/nio/file/Files/probeContentType/Basic.java fails on Windows 11
Reviewed-by: jpai, bpb
1 parent 0b11b57 commit f9137cb

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)