Integrated: 8369817: [TESTBUG] EmptyPath::toString is ignored
Francesco Andreuzzi
fandreuzzi at openjdk.org
Wed Oct 15 09:21:38 UTC 2025
On Tue, 14 Oct 2025 10:53:55 GMT, Francesco Andreuzzi <fandreuzzi at openjdk.org> wrote:
> JUnit ignores `@Test` methods which do not return `void`:
>
>
> (1) [WARNING] @Test method 'public java.lang.String EmptyPath.toString()' must not return a value. It will not be executed.
> Source: MethodSource [className = 'EmptyPath', methodName = 'toString', methodParameterTypes = '']
> at EmptyPath.toString(SourceFile:0)
>
>
> I propose to amend the method signature. This looks trivial to me.
This pull request has now been integrated.
Changeset: 008d8d91
Author: Francesco Andreuzzi <fandreuzzi at openjdk.org>
Committer: Albert Mingkun Yang <ayang at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/008d8d914cd4dd4573361390ee31120134338802
Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
8369817: [TESTBUG] EmptyPath::toString is ignored
Reviewed-by: jpai, ayang
-------------
PR: https://git.openjdk.org/jdk/pull/27797
More information about the core-libs-dev
mailing list