On Wed, 22 Nov 2023 05:37:55 GMT, Abhishek Kumar <abhis...@openjdk.org> wrote:

> For some reasons when I used the `current directory i.e. scratch`, test 
> failed in my local machine. `String tmpDir = System.getProperty(".");`

How does it fail?  
Is it because `System.getProperty(".")` returns `null`? The property `"."` 
doesn't exist, does it?

Use `new File(".")` which resolves to the current directory. Alternatively, 
remove references to paths, just create directories and files, they will be 
created in the current directory if you don't specify an absolute path.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16674#discussion_r1401989557

Reply via email to