RFR 8190501: (fs) Incorrect error message parameter in java/nio/file/Files/probeContentType/Basic.java
Alan Bateman
Alan.Bateman at oracle.com
Thu Nov 2 08:10:29 UTC 2017
+1
On 02/11/2017 01:03, Brian Burkhalter wrote:
> https://bugs.openjdk.java.net/browse/JDK-8190501
>
> --- a/test/jdk/java/nio/file/Files/probeContentType/Basic.java
> +++ b/test/jdk/java/nio/file/Files/probeContentType/Basic.java
> @@ -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++;
>
> The String[] expectedTypes is passed to a %s format instead of expectedTypes[i].
>
> Thanks,
>
> Brian
More information about the nio-dev
mailing list