Skip to content

Commit ac31e9a

Browse files
committed
Document fixes for @MethodSource local factory method names in release notes
Closes #3130 Closes #3131
1 parent a0eb8e2 commit ac31e9a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

documentation/src/docs/asciidoc/release-notes/release-notes-5.10.0-M1.adoc

+9-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,15 @@ repository on GitHub.
3636

3737
==== Bug Fixes
3838

39-
* ❓
39+
* Parameter types for _local_ `@MethodSource` factory method names are now validated. For
40+
example, `@MethodSource("myFactory(example.NonexistentType)")` will now result in an
41+
exception stating that `example.NonexistentType` cannot be resolved to a valid type.
42+
* The syntax for parameter types in _local_ `@MethodSource` factory method names now
43+
supports canonical array names -- for example, you may now specify `int[]` as in
44+
`@MethodSource("myFactory(int[])"` instead of the _binary_ name `[I` as in
45+
`@MethodSource("myFactory([I)"` (which was already supported) and
46+
`@MethodSource("myFactory(java.lang.String[])` instead of
47+
`@MethodSource("myFactory([Ljava.lang.String;)`.
4048

4149
==== Deprecations and Breaking Changes
4250

0 commit comments

Comments
 (0)