Move release notes entry for #3130 to 5.9.3 · junit-team/junit-framework@f6f1aff (original) (raw)

File tree

Original file line number Diff line number Diff line change
@@ -31,6 +31,15 @@ JUnit repository on GitHub.
31 31
32 32 ==== Bug Fixes
33 33
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;)`.
34 43 * Exceptions thrown for undeletable files when cleaning up a temporary directory created
35 44 via `@TempDir` now include the root cause.
36 45 * Allow lifecycle methods to be declared as `private` again for backwards compatibility