changeset 47725:6278140a2d55

8190501: (fs) Incorrect error message parameter in java/nio/file/Files/probeContentType/Basic.java Summary: Replace expectedTypes with expectedTypes[i] in the line in question. Reviewed-by: alanb
author bpb
date Fri, 03 Nov 2017 10:18:27 -0700
parents 24e43fd1ad69
children 66e2e3f62eb5
files test/jdk/java/nio/file/Files/probeContentType/Basic.java
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/jdk/java/nio/file/Files/probeContentType/Basic.java	Fri Nov 03 10:18:27 2017 -0700
+++ b/test/jdk/java/nio/file/Files/probeContentType/Basic.java	Fri Nov 03 10:18:27 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2017, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -114,7 +114,7 @@
                     failures++;
                 } else if (!type.equals(expectedTypes[i])) {
                     System.err.printf("Content type: %s; expected: %s%n",
-                        type, expectedTypes);
+                        type, expectedTypes[i]);
                     failures++;
                 }
             } finally {