From ac31e9a7d58973db73496244dab4defe17ae563e Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Mon, 23 Jan 2023 21:00:50 +0100 Subject: [PATCH] Document fixes for @MethodSource local factory method names in release notes Closes #3130 Closes #3131 --- .../release-notes/release-notes-5.10.0-M1.adoc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/documentation/src/docs/asciidoc/release-notes/release-notes-5.10.0-M1.adoc b/documentation/src/docs/asciidoc/release-notes/release-notes-5.10.0-M1.adoc index 5036080544a..daea2f4ed0f 100644 --- a/documentation/src/docs/asciidoc/release-notes/release-notes-5.10.0-M1.adoc +++ b/documentation/src/docs/asciidoc/release-notes/release-notes-5.10.0-M1.adoc @@ -36,7 +36,15 @@ 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;)`. ==== Deprecations and Breaking Changes