From f6f1afff075db92010871e841cc756ad19dc720a Mon Sep 17 00:00:00 2001 From: Marc Philipp Date: Sat, 22 Apr 2023 21:58:04 +0200 Subject: [PATCH] Move release notes entry for #3130 to 5.9.3 --- .../docs/asciidoc/release-notes/release-notes-5.9.3.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/documentation/src/docs/asciidoc/release-notes/release-notes-5.9.3.adoc b/documentation/src/docs/asciidoc/release-notes/release-notes-5.9.3.adoc index 4e0da156e26..0ec90b9e25e 100644 --- a/documentation/src/docs/asciidoc/release-notes/release-notes-5.9.3.adoc +++ b/documentation/src/docs/asciidoc/release-notes/release-notes-5.9.3.adoc @@ -31,6 +31,15 @@ JUnit repository on GitHub. ==== Bug Fixes +* Parameter types for _local_ `@MethodSource` factory method names are now validated. For + example, `@MethodSource("myFactory(example.NonexistentType)")` will now result in an + exception stating that `example.NonexistentType` cannot be resolved to a valid type. +* The syntax for parameter types in _local_ `@MethodSource` factory method names now + supports canonical array names -- for example, you may now specify `int[]` as in + `@MethodSource("myFactory(int[])"` instead of the _binary_ name `[I` as in + `@MethodSource("myFactory([I)"` (which was already supported) and + `@MethodSource("myFactory(java.lang.String[])` instead of + `@MethodSource("myFactory([Ljava.lang.String;)`. * Exceptions thrown for undeletable files when cleaning up a temporary directory created via `@TempDir` now include the root cause. * Allow lifecycle methods to be declared as `private` again for backwards compatibility