RFR: 8265225: jdk/jfr/tool/TestConfigure.java fails to cleanup the output files after the testing

Jie Fu jiefu at openjdk.java.net
Wed Apr 14 20:42:55 UTC 2021


On Wed, 14 Apr 2021 17:09:18 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

> I think the problem is here:
> 
> private static String newOutputFile(String filename) {
> return Path.of(**DIR**, System.currentTimeMillis() + filename).toAbsolutePath().toString();
> }
> 
> The test src directory should not be used, but instead ".", like in other JFR tests.

Nice catch!
It's really a much better fix.

Updated.
Thanks @egahlin .

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

PR: https://git.openjdk.java.net/jdk/pull/3493


More information about the hotspot-jfr-dev mailing list