RFR: 8369817: [TESTBUG] EmptyPath::toString is ignored [v2]

Francesco Andreuzzi fandreuzzi at openjdk.org
Tue Oct 14 11:20:40 UTC 2025


> 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.

Francesco Andreuzzi has updated the pull request incrementally with one additional commit since the last revision:

  rename

-------------

Changes:
  - all: https://git.openjdk.org/jdk/pull/27797/files
  - new: https://git.openjdk.org/jdk/pull/27797/files/9c98329e..d9e8c387

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27797&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27797&range=00-01

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/27797.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27797/head:pull/27797

PR: https://git.openjdk.org/jdk/pull/27797


More information about the core-libs-dev mailing list