Skip to content

Commit f6f1aff

Browse files
committed
Move release notes entry for #3130 to 5.9.3
1 parent b732a2b commit f6f1aff

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

documentation/src/docs/asciidoc/release-notes/release-notes-5.9.3.adoc

+9
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ JUnit repository on GitHub.
3131

3232
==== Bug Fixes
3333

34+
* Parameter types for _local_ `@MethodSource` factory method names are now validated. For
35+
example, `@MethodSource("myFactory(example.NonexistentType)")` will now result in an
36+
exception stating that `example.NonexistentType` cannot be resolved to a valid type.
37+
* The syntax for parameter types in _local_ `@MethodSource` factory method names now
38+
supports canonical array names -- for example, you may now specify `int[]` as in
39+
`@MethodSource("myFactory(int[])"` instead of the _binary_ name `[I` as in
40+
`@MethodSource("myFactory([I)"` (which was already supported) and
41+
`@MethodSource("myFactory(java.lang.String[])` instead of
42+
`@MethodSource("myFactory([Ljava.lang.String;)`.
3443
* Exceptions thrown for undeletable files when cleaning up a temporary directory created
3544
via `@TempDir` now include the root cause.
3645
* Allow lifecycle methods to be declared as `private` again for backwards compatibility

0 commit comments

Comments
 (0)