[TEST-ONLY] JDK 9 RFR of 8164432: java/nio/file/Files/probeContentType/Basic.java fails on windows for Content type: audio/vnd.dlna.adts

Brian Burkhalter brian.burkhalter at oracle.com
Fri Aug 19 18:28:17 UTC 2016


Please review at your convenience:

Issue:	https://bugs.openjdk.java.net/browse/JDK-8164432
Patch:	[1]

Add audio/vnd.dlna.adts as an allowed type for the file extension “aac” for Advanced Audio Coding.

Thanks,

Brian

[1] diff

--- a/test/java/nio/file/Files/probeContentType/Basic.java
+++ b/test/java/nio/file/Files/probeContentType/Basic.java
@@ -174,27 +174,27 @@
 
         // Verify that certain media extensions are mapped to the correct type.
         String[] extensions = new String[]{
             "aac",
             "flac",
             "jpg",
             "mp3",
             "mp4",
             "pdf",
             "png",
             "webm"
         };
         String[][] expectedTypes = new String[][] {
-            {"audio/aac", "audio/x-aac"},
+            {"audio/aac", "audio/x-aac", "audio/vnd.dlna.adts"},
             {"audio/flac", "audio/x-flac"},
             {"image/jpeg"},
             {"audio/mpeg"},
             {"video/mp4"},
             {"application/pdf"},
             {"image/png"},
             {"video/webm"}
         };
         failures += checkContentTypes(extensions, expectedTypes);
 
         if (failures > 0) {
             throw new RuntimeException("Test failed!");
         }

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/nio-dev/attachments/20160819/9c7a7d72/attachment-0001.html>


More information about the nio-dev mailing list